fix adduser command
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user