delete users even though it has some processes running
This commit is contained in:
parent
ae30498030
commit
e3dc97d6d4
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue