sudo username fix

This commit is contained in:
bedefaced 2017-04-17 16:04:54 +03:00
parent 9ee32ceaf5
commit cf2fd5efe5

View File

@ -119,7 +119,8 @@ do
echo
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