sudo username fix
This commit is contained in:
parent
9ee32ceaf5
commit
cf2fd5efe5
@ -119,7 +119,8 @@ do
|
|||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Created directory $STARTDIR/$LOGIN with necessary files."
|
echo "Created directory $STARTDIR/$LOGIN with necessary files."
|
||||||
chown -R ${USER:=$(/usr/bin/id -run)}:$USER $STARTDIR/$LOGIN/
|
USERNAME=${SUDO_USER:-$USER}
|
||||||
|
chown -R $USERNAME:$USERNAME $STARTDIR/$LOGIN/
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user