remove all files on user removal

This commit is contained in:
Bob Mottram 2016-11-08 14:13:50 +00:00
parent 8641bb5541
commit cd45d78c89
2 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ function remove_ghost {
read_config_param "GHOST_DOMAIN_NAME"
nginx_dissite $GHOST_DOMAIN_NAME
remove_certs ${GHOST_DOMAIN_NAME}
deluser -r ghost
deluser --remove-all-files ghost
if [ -f /etc/nginx/sites-available/$GHOST_DOMAIN_NAME ]; then
rm -f /etc/nginx/sites-available/$GHOST_DOMAIN_NAME
fi

View File

@ -233,7 +233,7 @@ function remove_jitsi {
if [ -d /etc/jitsi ]; then
rm -rf /etc/jitsi
fi
deluser -r jitsi
deluser --remove-all-files jitsi
if [ -d /usr/share/jitsi-videobridge ]; then
rm -rf /usr/share/jitsi-videobridge
fi