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 88f5b99 commit 9e5372dCopy full SHA for 9e5372d
systemd/user/codam-web-greeter-init.sh
@@ -54,11 +54,8 @@ DATA_SERVER_URL=$(/usr/bin/grep -Po '(?<=data-server-url=).*' /usr/share/web-gre
54
if [ ! -f "$FACE_PATH" ]; then
55
/usr/bin/echo "No user image found in $FACE_PATH, attempting download from the clusterdata server"
56
57
- # Get the user's login
58
- LOGIN=$(/usr/bin/whoami)
59
-
60
# Get the user's profile picture from Intra through the clusterdata server
61
- IMAGE_URL="${DATA_SERVER_URL}user/${LOGIN}/.face"
+ IMAGE_URL="${DATA_SERVER_URL}user/$USER/.face"
62
/usr/bin/echo "Downloading user image from $IMAGE_URL to $FACE_PATH"
63
/usr/bin/curl -L -s "$IMAGE_URL" -o "$FACE_PATH" || true # Prevent curl from erroring out if the download fails
64
else
0 commit comments