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_backup_database_local etherpad
remove_nodejs etherpad remove_nodejs etherpad
sync groupdel -f etherpad
delgroup etherpad userdel -r etherpad
deluser --remove-all-files etherpad
function_check remove_ddns_domain function_check remove_ddns_domain
remove_ddns_domain $ETHERPAD_DOMAIN_NAME 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
sed -i '/ghost/d' $COMPLETION_FILE sed -i '/ghost/d' $COMPLETION_FILE
sync groupdel -f ghost
delgroup ghost userdel -r ghost
deluser --remove-all-files ghost
function_check remove_ddns_domain function_check remove_ddns_domain
remove_ddns_domain $GHOST_DOMAIN_NAME remove_ddns_domain $GHOST_DOMAIN_NAME

View File

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

View File

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

View File

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

View File

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

View File

@ -284,9 +284,8 @@ function remove_radicale {
firewall_remove ${RADICALE_PORT} tcp firewall_remove ${RADICALE_PORT} tcp
sync groupdel -f radicale
delgroup radicale userdel -r radicale
deluser --remove-all-files radicale
function_check remove_onion_service function_check remove_onion_service
remove_onion_service radicale ${RADICALE_ONION_PORT} 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) remove_onion_service storage-tahoelafs ${TAHOELAFS_STORAGE_ONION_PORT} $(get_tahoelafs_nick)
sed -i '/HidServAuth /d' /etc/tor/torrc sed -i '/HidServAuth /d' /etc/tor/torrc
sync groupdel -f tahoelafs
delgroup tahoelafs userdel -r tahoelafs
deluser --remove-all-files tahoelafs
if [ -d $TAHOE_DIR ]; then if [ -d $TAHOE_DIR ]; then
rm -rf $TAHOE_DIR rm -rf $TAHOE_DIR
@ -625,9 +624,8 @@ function install_tahoelafs {
apt-get -yq install python-virtualenv apache2-utils apt-get -yq install python-virtualenv apache2-utils
if [ -d $TAHOE_DIR ]; then if [ -d $TAHOE_DIR ]; then
sync groupdel -f tahoelafs
delgroup tahoelafs userdel -r tahoelafs
deluser --remove-all-files tahoelafs
rm -rf $TAHOE_DIR rm -rf $TAHOE_DIR
fi fi

View File

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