Try to keep systemd happy

This commit is contained in:
Bob Mottram 2017-06-10 21:37:50 +01:00
parent c24b2e2dcf
commit 1f1c5d30d1
17 changed files with 22 additions and 1 deletions

View File

@ -157,6 +157,7 @@ function remove_cryptpad {
if [ -f /etc/systemd/system/cryptpad.service ]; then if [ -f /etc/systemd/system/cryptpad.service ]; then
rm /etc/systemd/system/cryptpad.service rm /etc/systemd/system/cryptpad.service
fi fi
systemctl daemon-reload
function_check remove_nodejs function_check remove_nodejs
remove_nodejs cryptpad remove_nodejs cryptpad

View File

@ -415,6 +415,7 @@ function remove_etherpad {
systemctl disable etherpad systemctl disable etherpad
rm /etc/systemd/system/etherpad.service rm /etc/systemd/system/etherpad.service
fi fi
systemctl daemon-reload
nginx_dissite $ETHERPAD_DOMAIN_NAME nginx_dissite $ETHERPAD_DOMAIN_NAME
remove_certs $ETHERPAD_DOMAIN_NAME remove_certs $ETHERPAD_DOMAIN_NAME
if [ -d /var/www/$ETHERPAD_DOMAIN_NAME ]; then if [ -d /var/www/$ETHERPAD_DOMAIN_NAME ]; then

View File

@ -286,6 +286,7 @@ function remove_ghost {
systemctl stop ghost systemctl stop ghost
systemctl disable ghost systemctl disable ghost
rm /etc/systemd/system/ghost.service rm /etc/systemd/system/ghost.service
systemctl daemon-reload
function_check remove_nodejs function_check remove_nodejs
remove_nodejs ghost remove_nodejs ghost

View File

@ -355,6 +355,7 @@ function remove_gogs {
fi fi
systemctl stop gogs systemctl stop gogs
systemctl disable gogs systemctl disable gogs
nginx_dissite ${GIT_DOMAIN_NAME} nginx_dissite ${GIT_DOMAIN_NAME}
remove_certs ${GIT_DOMAIN_NAME} remove_certs ${GIT_DOMAIN_NAME}
if [ -d /var/www/${GIT_DOMAIN_NAME} ]; then if [ -d /var/www/${GIT_DOMAIN_NAME} ]; then
@ -366,6 +367,7 @@ function remove_gogs {
function_check drop_database function_check drop_database
drop_database gogs drop_database gogs
rm /etc/systemd/system/gogs.service rm /etc/systemd/system/gogs.service
systemctl daemon-reload
rm -rf /home/${GOGS_USERNAME}/* rm -rf /home/${GOGS_USERNAME}/*
remove_onion_service gogs ${GIT_ONION_PORT} 9418 remove_onion_service gogs ${GIT_ONION_PORT} 9418
remove_completion_param "install_gogs" remove_completion_param "install_gogs"

View File

@ -155,6 +155,7 @@ function remove_ipfs_go {
systemctl disable ipfs systemctl disable ipfs
systemctl daemon-reload systemctl daemon-reload
rm /etc/systemd/system/ipfs.service rm /etc/systemd/system/ipfs.service
systemctl daemon-reload
rm -rf $GOPATH/src/github.com/ipfs rm -rf $GOPATH/src/github.com/ipfs
firewall_remove $IPFS_PORT tcp firewall_remove $IPFS_PORT tcp
remove_completion_param install_ipfs remove_completion_param install_ipfs

View File

@ -426,6 +426,7 @@ function remove_koel {
if [ -f /etc/systemd/system/koel.service ]; then if [ -f /etc/systemd/system/koel.service ]; then
rm /etc/systemd/system/koel.service rm /etc/systemd/system/koel.service
fi fi
systemctl daemon-reload
function_check remove_nodejs function_check remove_nodejs
remove_nodejs koel remove_nodejs koel

View File

@ -108,6 +108,7 @@ function remove_librevault {
systemctl stop librevault systemctl stop librevault
systemctl disable librevault systemctl disable librevault
rm /etc/systemd/system/librevault.service rm /etc/systemd/system/librevault.service
systemctl daemon-reload
remove_completion_param install_librevault remove_completion_param install_librevault
remove_completion_param configure_firewall_for_librevault remove_completion_param configure_firewall_for_librevault
} }

View File

@ -226,6 +226,7 @@ function remove_mailpile {
systemctl stop mailpile systemctl stop mailpile
systemctl disable mailpile systemctl disable mailpile
rm /etc/systemd/system/mailpile.service rm /etc/systemd/system/mailpile.service
systemctl daemon-reload
read_config_param "MAILPILE_DOMAIN_NAME" read_config_param "MAILPILE_DOMAIN_NAME"
nginx_dissite $MAILPILE_DOMAIN_NAME nginx_dissite $MAILPILE_DOMAIN_NAME

View File

@ -478,6 +478,7 @@ function remove_matrix {
if [ -f /etc/systemd/system/matrix.service ]; then if [ -f /etc/systemd/system/matrix.service ]; then
rm /etc/systemd/system/matrix.service rm /etc/systemd/system/matrix.service
fi fi
systemctl daemon-reload
apt-get -y remove --purge coturn apt-get -y remove --purge coturn
cd /etc/matrix cd /etc/matrix
pip uninstall . pip uninstall .

View File

@ -235,6 +235,7 @@ function remove_mediagoblin {
systemctl stop mediagoblin systemctl stop mediagoblin
systemctl disable mediagoblin systemctl disable mediagoblin
rm /etc/systemd/system/mediagoblin.service rm /etc/systemd/system/mediagoblin.service
systemctl daemon-reload
function_check remove_onion_service function_check remove_onion_service
remove_onion_service mediagoblin ${MEDIAGOBLIN_ONION_PORT} remove_onion_service mediagoblin ${MEDIAGOBLIN_ONION_PORT}

View File

@ -270,6 +270,7 @@ function remove_movim {
systemctl stop movim systemctl stop movim
systemctl disable movim systemctl disable movim
rm /etc/systemd/system/movim.service rm /etc/systemd/system/movim.service
systemctl daemon-reload
read_config_param "MY_USERNAME" read_config_param "MY_USERNAME"
echo "Removing $MOVIM_DOMAIN_NAME" echo "Removing $MOVIM_DOMAIN_NAME"

View File

@ -274,6 +274,7 @@ function remove_radicale {
if [ -f /etc/systemd/system/radicale.service ]; then if [ -f /etc/systemd/system/radicale.service ]; then
rm /etc/systemd/system/radicale.service rm /etc/systemd/system/radicale.service
fi fi
systemctl daemon-reload
if [ -f /etc/nginx/sites-available/radicale ]; then if [ -f /etc/nginx/sites-available/radicale ]; then
rm /etc/nginx/sites-available/radicale rm /etc/nginx/sites-available/radicale
fi fi

View File

@ -167,6 +167,7 @@ function remove_scuttlebot {
systemctl stop scuttlebot systemctl stop scuttlebot
systemctl disable scuttlebot systemctl disable scuttlebot
rm /etc/systemd/system/scuttlebot.service rm /etc/systemd/system/scuttlebot.service
systemctl daemon-reload
userdel -r scuttlebot userdel -r scuttlebot

View File

@ -789,6 +789,8 @@ function remove_searx {
systemctl stop searx systemctl stop searx
systemctl disable searx systemctl disable searx
rm /etc/systemd/system/searx.service rm /etc/systemd/system/searx.service
systemctl daemon-reload
function_check remove_onion_service function_check remove_onion_service
remove_onion_service searx ${SEARX_ONION_PORT} remove_onion_service searx ${SEARX_ONION_PORT}
userdel -r searx userdel -r searx

View File

@ -458,8 +458,9 @@ function remove_syncthing {
firewall_remove ${SYNCTHING_PORT} firewall_remove ${SYNCTHING_PORT}
systemctl stop syncthing systemctl stop syncthing
systemctl disable syncthing systemctl disable syncthing
apt-get -yq remove --purge syncthing
rm /etc/systemd/system/syncthing.service rm /etc/systemd/system/syncthing.service
systemctl daemon-reload
apt-get -yq remove --purge syncthing
sed -i "/${PROJECT_NAME}-syncthing/d" /etc/crontab sed -i "/${PROJECT_NAME}-syncthing/d" /etc/crontab
remove_completion_param install_syncthing remove_completion_param install_syncthing
remove_completion_param configure_firewall_for_syncthing remove_completion_param configure_firewall_for_syncthing

View File

@ -351,6 +351,8 @@ function remove_turtl {
systemctl stop turtl systemctl stop turtl
systemctl disable turtl systemctl disable turtl
rm /etc/systemd/system/turtl.service rm /etc/systemd/system/turtl.service
systemctl daemon-reload
remove_rethinkdb remove_rethinkdb
remove_app turtl remove_app turtl
remove_completion_param install_turtl remove_completion_param install_turtl

View File

@ -53,6 +53,8 @@ function remove_turn {
if [ -f /etc/systemd/system/turn.service ]; then if [ -f /etc/systemd/system/turn.service ]; then
rm /etc/systemd/system/turn.service rm /etc/systemd/system/turn.service
fi fi
systemctl daemon-reload
apt-get -y remove coturn apt-get -y remove coturn
rm -rf /var/lib/turn rm -rf /var/lib/turn
sed -i "/# TURN Server/,/# End of TURN Server/d" /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} sed -i "/# TURN Server/,/# End of TURN Server/d" /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}