put jail job in background
This commit is contained in:
parent
85f9053543
commit
c655e092e8
|
@ -89,7 +89,10 @@ if ! grep -q "^$username:" /etc/passwd; then
|
||||||
fi
|
fi
|
||||||
# if jail option is set then jail user
|
# if jail option is set then jail user
|
||||||
if [[ -n $jail ]]; then
|
if [[ -n $jail ]]; then
|
||||||
/usr/local/bin/vhost-user-jail.sh -u $username > /dev/null 2>&1
|
# job is run in the background as it can take about 1 minute to complete
|
||||||
|
/usr/local/bin/vhost-user-jail.sh -u $username >/dev/null 2>/dev/null &
|
||||||
|
# pause to give above script time to create jail home dir which is used by vhost-add.sh below
|
||||||
|
sleep 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user