Verified Commit 2221c62d authored by Marco Marinello's avatar Marco Marinello
Browse files

Added support for exclusion file and sync disable

parent e140334a
Pipeline #259 passed with stage
in 46 seconds
...@@ -21,8 +21,7 @@ ...@@ -21,8 +21,7 @@
# Stop system-wide Veyon daemon # Stop system-wide Veyon daemon
systemctl stop veyon systemctl stop veyon
# This file is recovered by a daemon from the FUSS Server, if it wget -O /var/lib/fuss-client/veyon-excluded-groups http://proxy/veyon/excluded_groups || rm -f /var/lib/fuss-client/veyon-excluded-groups
# doesn't exists, will default as below.
if [ -e /var/lib/fuss-client/veyon-excluded-groups ]; then if [ -e /var/lib/fuss-client/veyon-excluded-groups ]; then
EXCLUDED_GROUPS="$(xargs < /var/lib/fuss-client/veyon-excluded-groups)" EXCLUDED_GROUPS="$(xargs < /var/lib/fuss-client/veyon-excluded-groups)"
else else
...@@ -36,7 +35,7 @@ BELONGING_GROUPS=" $(id -nG $USER) " ...@@ -36,7 +35,7 @@ BELONGING_GROUPS=" $(id -nG $USER) "
for group in $EXCLUDED_GROUPS; do for group in $EXCLUDED_GROUPS; do
if echo "$BELONGING_GROUPS" | grep " $group "; then if echo "$BELONGING_GROUPS" | grep " $group "; then
python3 /usr/share/fuss-client/roles/veyon/files/veyon-sync-pc-list || true [ -f /var/lib/fuss-client/no-veyon-sync ] && (python3 /usr/share/fuss-client/roles/veyon/files/veyon-sync-pc-list || true)
exit 0 exit 0
fi fi
done done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment