Skip to content

Commit 9e5372d

Browse files
committed
remove useless call to whoami
1 parent 88f5b99 commit 9e5372d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

systemd/user/codam-web-greeter-init.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,8 @@ DATA_SERVER_URL=$(/usr/bin/grep -Po '(?<=data-server-url=).*' /usr/share/web-gre
5454
if [ ! -f "$FACE_PATH" ]; then
5555
/usr/bin/echo "No user image found in $FACE_PATH, attempting download from the clusterdata server"
5656

57-
# Get the user's login
58-
LOGIN=$(/usr/bin/whoami)
59-
6057
# Get the user's profile picture from Intra through the clusterdata server
61-
IMAGE_URL="${DATA_SERVER_URL}user/${LOGIN}/.face"
58+
IMAGE_URL="${DATA_SERVER_URL}user/$USER/.face"
6259
/usr/bin/echo "Downloading user image from $IMAGE_URL to $FACE_PATH"
6360
/usr/bin/curl -L -s "$IMAGE_URL" -o "$FACE_PATH" || true # Prevent curl from erroring out if the download fails
6461
else

0 commit comments

Comments
 (0)