mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
php-fpm support
This commit is contained in:
parent
dfbcc06269
commit
567ce7e832
64 changed files with 976 additions and 197 deletions
|
@ -91,11 +91,17 @@ sed -i "/ $user$/d" $VESTA/data/queue/traffic.pipe
|
|||
|
||||
# Deleting system user
|
||||
/usr/sbin/userdel -f $user >> /dev/null 2>&1
|
||||
/usr/sbin/userdel -f $user >> /dev/null 2>&1
|
||||
if [ "$?" != 0 ]; then
|
||||
sed -i "/^$user:/d" /etc/passwd
|
||||
sed -i "/^$user:/d" /etc/shadow
|
||||
fi
|
||||
|
||||
/usr/sbin/groupdel $user >> /dev/null 2>&1
|
||||
if [ "$?" != 0 ]; then
|
||||
sed -i "/^$user:/d" /etc/group
|
||||
fi
|
||||
|
||||
# Deleting user directories
|
||||
chattr -i $HOMEDIR/$user/conf
|
||||
rm -rf $HOMEDIR/$user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue