put jail job in background

This commit is contained in:
Matthew Saunders Brown 2022-09-01 15:32:26 -07:00
parent 85f9053543
commit c655e092e8

View File

@ -89,7 +89,10 @@ if ! grep -q "^$username:" /etc/passwd; then
fi
# if jail option is set then jail user
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