Browse Source

delete users even though it has some processes running

master
Brice Waegeneire 8 months ago
parent
commit
e3dc97d6d4
  1. 2
      scripts/web-add-nginx.sh
  2. 4
      scripts/web-add.sh

2
scripts/web-add-nginx.sh

@ -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

4
scripts/web-add.sh

@ -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…
Cancel
Save