Compare commits

...

1 commit

Author SHA1 Message Date
Bruno TATU 5c2a3d79ce kills resident users when del option is used 2020-02-10 11:44:35 +01:00

View file

@ -717,8 +717,14 @@ op_del() {
set -x
if [ "$WEB_SERVER" == "apache" ]; then
if ps -u www-"$login" >/dev/null ; then
killall -s SIGKILL -u www-"$login"
fi
userdel www-"$login"
fi
if ps -u "$login" >/dev/null ; then
killall -s SIGKILL -u "$login"
fi
userdel "$login"
for php_version in "${PHP_VERSIONS[@]}"; do
lxc-attach -n php"${php_version}" -- userdel -f www-"$login"