Commit d92bfe9f authored by intrigeri's avatar intrigeri
Browse files

Use $LIVE_USERNAME variable instead of hard-coding "amnesia" (refs: #15583)

parent 425f38de
......@@ -12,9 +12,12 @@
#
# https://redmine.tails.boum.org/code/issues/15583
# Get LIVE_USERNAME
. /etc/live/config.d/username.conf
# Since we don't want to add 'su' function for root user, we will stop
# execution of this script if $USER is root.
[ "$USER" == "amnesia" ] || return
[ "$USER" == "$LIVE_USERNAME" ] || return
su (){
/usr/local/bin/replace-su-with-sudo
......
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