Allow root user

This commit is contained in:
Bob Mottram 2016-11-21 10:53:44 +00:00
parent d27efc5dba
commit aa2670f86e
1 changed files with 4 additions and 2 deletions

View File

@ -146,8 +146,10 @@ if [ ! $CURR_USERNAME ]; then
fi
if [ ! -d /home/$CURR_USERNAME ]; then
echo $"Error: User $CURR_USERNAME does not exist"
exit 2
if [[ "$CURR_USERNAME" != "root" ]]; then
echo $"Error: User $CURR_USERNAME does not exist"
exit 2
fi
fi
if [ ${REMOVE_APP} ]; then