We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1591853 commit 8298835Copy full SHA for 8298835
systemd/user/codam-web-greeter-cleanup.sh
@@ -3,6 +3,12 @@
3
# Exit on error
4
set -e
5
6
+# Only run for users in the student or piscine group
7
+if ! /usr/bin/groups | /usr/bin/grep -qE '(student|piscine)'; then
8
+ /usr/bin/echo "Not running for user $(/usr/bin/whoami)"
9
+ exit 0
10
+fi
11
+
12
TMP_WALLPAPER_PATH="/tmp/codam-web-greeter-user-wallpaper"
13
TMP_AVATAR_PATH="/tmp/codam-web-greeter-user-avatar"
14
0 commit comments