fix adduser command

This commit is contained in:
ducoterra
2018-09-16 22:58:55 -04:00
parent 6860fde53c
commit e695c08569
2 changed files with 11 additions and 5 deletions

View File

@@ -129,11 +129,7 @@ tput setaf 2
echo -e "Starting Django project"
tput setaf 0
# check user and create dirs
id -u $user > /dev/null
if [ $? = 0 ]; then
adduser $user
fi
adduser $user > /dev/null
if [ ! -d "/home/$user" ] ; then
mkdir /home/$user
chown -R $user:$user /home/$user