Different user deletion commands

This commit is contained in:
Bob Mottram 2017-06-12 11:33:54 +01:00
parent da7380356b
commit 0d5bc8900a
9 changed files with 20 additions and 30 deletions

View File

@ -434,9 +434,8 @@ function remove_etherpad {
remove_backup_database_local etherpad
remove_nodejs etherpad
sync
delgroup etherpad
deluser --remove-all-files etherpad
groupdel -f etherpad
userdel -r etherpad
function_check remove_ddns_domain
remove_ddns_domain $ETHERPAD_DOMAIN_NAME

View File

@ -311,9 +311,8 @@ function remove_ghost {
sed -i '/Ghost/d' $COMPLETION_FILE
sed -i '/ghost/d' $COMPLETION_FILE
sync
delgroup ghost
deluser --remove-all-files ghost
groupdel -f ghost
userdel -r ghost
function_check remove_ddns_domain
remove_ddns_domain $GHOST_DOMAIN_NAME

View File

@ -374,9 +374,8 @@ function remove_gogs {
sed -i '/gogs /d' $COMPLETION_FILE
remove_backup_database_local gogs
sync
delgroup gogs
deluser --remove-all-files gogs
groupdel -f gogs
userdel -r gogs
function_check remove_ddns_domain
remove_ddns_domain $GIT_DOMAIN_NAME

View File

@ -240,9 +240,8 @@ function remove_mailpile {
function_check remove_ddns_domain
remove_ddns_domain $MAILPILE_DOMAIN_NAME
sync
delgroup mailpile
deluser --remove-all-files mailpile
groupdel -f mailpile
userdel -r mailpile
remove_config_param MAILPILE_DOMAIN_NAME
remove_config_param MAILPILE_CODE

View File

@ -485,9 +485,8 @@ function remove_matrix {
rm -rf $MATRIX_DATA_DIR
rm -rf /etc/matrix
sync
delgroup matrix
deluser --remove-all-files matrix
groupdel -f matrix
userdel -r matrix
remove_onion_service matrix ${MATRIX_ONION_PORT}
remove_onion_service matrix ${MATRIX_FEDERATION_ONION_PORT}

View File

@ -253,9 +253,8 @@ function remove_mediagoblin {
remove_nodejs mediagoblin
sync
delgroup mediagoblin
deluser --remove-all-files mediagoblin
groupdel -f mediagoblin
userdel -r mediagoblin
function_check remove_ddns_domain
remove_ddns_domain $MEDIAGOBLIN_DOMAIN_NAME

View File

@ -284,9 +284,8 @@ function remove_radicale {
firewall_remove ${RADICALE_PORT} tcp
sync
delgroup radicale
deluser --remove-all-files radicale
groupdel -f radicale
userdel -r radicale
function_check remove_onion_service
remove_onion_service radicale ${RADICALE_ONION_PORT}

View File

@ -375,9 +375,8 @@ function remove_tahoelafs {
remove_onion_service storage-tahoelafs ${TAHOELAFS_STORAGE_ONION_PORT} $(get_tahoelafs_nick)
sed -i '/HidServAuth /d' /etc/tor/torrc
sync
delgroup tahoelafs
deluser --remove-all-files tahoelafs
groupdel -f tahoelafs
userdel -r tahoelafs
if [ -d $TAHOE_DIR ]; then
rm -rf $TAHOE_DIR
@ -625,9 +624,8 @@ function install_tahoelafs {
apt-get -yq install python-virtualenv apache2-utils
if [ -d $TAHOE_DIR ]; then
sync
delgroup tahoelafs
deluser --remove-all-files tahoelafs
groupdel -f tahoelafs
userdel -r tahoelafs
rm -rf $TAHOE_DIR
fi

View File

@ -370,9 +370,8 @@ function remove_turtl {
rm -rf /var/lib/rethinkdb
rm -rf $TURTL_BASE_DIR
sync
delgroup turtl
deluser --remove-all-files turtl
groupdel -f turtl
userdel -r turtl
}