update to create a user if necessary
This commit is contained in:
4
install.sh
Normal file → Executable file
4
install.sh
Normal file → Executable file
@@ -186,6 +186,10 @@ fi
|
|||||||
tput setaf 2
|
tput setaf 2
|
||||||
echo -e "Starting Django project"
|
echo -e "Starting Django project"
|
||||||
tput setaf 0
|
tput setaf 0
|
||||||
|
echo id -u $user
|
||||||
|
if [ $? = 0 ]; then
|
||||||
|
adduser $user
|
||||||
|
fi
|
||||||
if [ ! -d "/home/$user" ] ; then
|
if [ ! -d "/home/$user" ] ; then
|
||||||
mkdir /home/$user
|
mkdir /home/$user
|
||||||
chown -R $user:$user /home/$user
|
chown -R $user:$user /home/$user
|
||||||
|
|||||||
Reference in New Issue
Block a user