delete users even though it has some processes running

This commit is contained in:
Brice Waegeneire 2021-09-22 10:31:49 +02:00
parent ae30498030
commit e3dc97d6d4
2 changed files with 3 additions and 3 deletions

View File

@ -388,7 +388,7 @@ op_del() {
set -x
deluser www-data $login
userdel $login
userdel -f $login
groupdel $login
sed -i.bak "/^$login:/d" /etc/aliases

View File

@ -725,9 +725,9 @@ op_del() {
set -x
if [ "$WEB_SERVER" == "apache" ]; then
userdel www-"$login"
userdel -f www-"$login"
fi
userdel "$login"
userdel -f "$login"
for php_version in "${PHP_VERSIONS[@]}"; do
lxc-attach -n php"${php_version}" -- userdel -f www-"$login"
lxc-attach -n php"${php_version}" -- userdel -f "$login"