Try to keep systemd happy
This commit is contained in:
parent
c24b2e2dcf
commit
1f1c5d30d1
|
@ -157,6 +157,7 @@ function remove_cryptpad {
|
|||
if [ -f /etc/systemd/system/cryptpad.service ]; then
|
||||
rm /etc/systemd/system/cryptpad.service
|
||||
fi
|
||||
systemctl daemon-reload
|
||||
|
||||
function_check remove_nodejs
|
||||
remove_nodejs cryptpad
|
||||
|
|
|
@ -415,6 +415,7 @@ function remove_etherpad {
|
|||
systemctl disable etherpad
|
||||
rm /etc/systemd/system/etherpad.service
|
||||
fi
|
||||
systemctl daemon-reload
|
||||
nginx_dissite $ETHERPAD_DOMAIN_NAME
|
||||
remove_certs $ETHERPAD_DOMAIN_NAME
|
||||
if [ -d /var/www/$ETHERPAD_DOMAIN_NAME ]; then
|
||||
|
|
|
@ -286,6 +286,7 @@ function remove_ghost {
|
|||
systemctl stop ghost
|
||||
systemctl disable ghost
|
||||
rm /etc/systemd/system/ghost.service
|
||||
systemctl daemon-reload
|
||||
|
||||
function_check remove_nodejs
|
||||
remove_nodejs ghost
|
||||
|
|
|
@ -355,6 +355,7 @@ function remove_gogs {
|
|||
fi
|
||||
systemctl stop gogs
|
||||
systemctl disable gogs
|
||||
|
||||
nginx_dissite ${GIT_DOMAIN_NAME}
|
||||
remove_certs ${GIT_DOMAIN_NAME}
|
||||
if [ -d /var/www/${GIT_DOMAIN_NAME} ]; then
|
||||
|
@ -366,6 +367,7 @@ function remove_gogs {
|
|||
function_check drop_database
|
||||
drop_database gogs
|
||||
rm /etc/systemd/system/gogs.service
|
||||
systemctl daemon-reload
|
||||
rm -rf /home/${GOGS_USERNAME}/*
|
||||
remove_onion_service gogs ${GIT_ONION_PORT} 9418
|
||||
remove_completion_param "install_gogs"
|
||||
|
|
|
@ -155,6 +155,7 @@ function remove_ipfs_go {
|
|||
systemctl disable ipfs
|
||||
systemctl daemon-reload
|
||||
rm /etc/systemd/system/ipfs.service
|
||||
systemctl daemon-reload
|
||||
rm -rf $GOPATH/src/github.com/ipfs
|
||||
firewall_remove $IPFS_PORT tcp
|
||||
remove_completion_param install_ipfs
|
||||
|
|
|
@ -426,6 +426,7 @@ function remove_koel {
|
|||
if [ -f /etc/systemd/system/koel.service ]; then
|
||||
rm /etc/systemd/system/koel.service
|
||||
fi
|
||||
systemctl daemon-reload
|
||||
|
||||
function_check remove_nodejs
|
||||
remove_nodejs koel
|
||||
|
|
|
@ -108,6 +108,7 @@ function remove_librevault {
|
|||
systemctl stop librevault
|
||||
systemctl disable librevault
|
||||
rm /etc/systemd/system/librevault.service
|
||||
systemctl daemon-reload
|
||||
remove_completion_param install_librevault
|
||||
remove_completion_param configure_firewall_for_librevault
|
||||
}
|
||||
|
|
|
@ -226,6 +226,7 @@ function remove_mailpile {
|
|||
systemctl stop mailpile
|
||||
systemctl disable mailpile
|
||||
rm /etc/systemd/system/mailpile.service
|
||||
systemctl daemon-reload
|
||||
|
||||
read_config_param "MAILPILE_DOMAIN_NAME"
|
||||
nginx_dissite $MAILPILE_DOMAIN_NAME
|
||||
|
|
|
@ -478,6 +478,7 @@ function remove_matrix {
|
|||
if [ -f /etc/systemd/system/matrix.service ]; then
|
||||
rm /etc/systemd/system/matrix.service
|
||||
fi
|
||||
systemctl daemon-reload
|
||||
apt-get -y remove --purge coturn
|
||||
cd /etc/matrix
|
||||
pip uninstall .
|
||||
|
|
|
@ -235,6 +235,7 @@ function remove_mediagoblin {
|
|||
systemctl stop mediagoblin
|
||||
systemctl disable mediagoblin
|
||||
rm /etc/systemd/system/mediagoblin.service
|
||||
systemctl daemon-reload
|
||||
|
||||
function_check remove_onion_service
|
||||
remove_onion_service mediagoblin ${MEDIAGOBLIN_ONION_PORT}
|
||||
|
|
|
@ -270,6 +270,7 @@ function remove_movim {
|
|||
systemctl stop movim
|
||||
systemctl disable movim
|
||||
rm /etc/systemd/system/movim.service
|
||||
systemctl daemon-reload
|
||||
|
||||
read_config_param "MY_USERNAME"
|
||||
echo "Removing $MOVIM_DOMAIN_NAME"
|
||||
|
|
|
@ -274,6 +274,7 @@ function remove_radicale {
|
|||
if [ -f /etc/systemd/system/radicale.service ]; then
|
||||
rm /etc/systemd/system/radicale.service
|
||||
fi
|
||||
systemctl daemon-reload
|
||||
if [ -f /etc/nginx/sites-available/radicale ]; then
|
||||
rm /etc/nginx/sites-available/radicale
|
||||
fi
|
||||
|
|
|
@ -167,6 +167,7 @@ function remove_scuttlebot {
|
|||
systemctl stop scuttlebot
|
||||
systemctl disable scuttlebot
|
||||
rm /etc/systemd/system/scuttlebot.service
|
||||
systemctl daemon-reload
|
||||
|
||||
userdel -r scuttlebot
|
||||
|
||||
|
|
|
@ -789,6 +789,8 @@ function remove_searx {
|
|||
systemctl stop searx
|
||||
systemctl disable searx
|
||||
rm /etc/systemd/system/searx.service
|
||||
systemctl daemon-reload
|
||||
|
||||
function_check remove_onion_service
|
||||
remove_onion_service searx ${SEARX_ONION_PORT}
|
||||
userdel -r searx
|
||||
|
|
|
@ -458,8 +458,9 @@ function remove_syncthing {
|
|||
firewall_remove ${SYNCTHING_PORT}
|
||||
systemctl stop syncthing
|
||||
systemctl disable syncthing
|
||||
apt-get -yq remove --purge syncthing
|
||||
rm /etc/systemd/system/syncthing.service
|
||||
systemctl daemon-reload
|
||||
apt-get -yq remove --purge syncthing
|
||||
sed -i "/${PROJECT_NAME}-syncthing/d" /etc/crontab
|
||||
remove_completion_param install_syncthing
|
||||
remove_completion_param configure_firewall_for_syncthing
|
||||
|
|
|
@ -351,6 +351,8 @@ function remove_turtl {
|
|||
systemctl stop turtl
|
||||
systemctl disable turtl
|
||||
rm /etc/systemd/system/turtl.service
|
||||
systemctl daemon-reload
|
||||
|
||||
remove_rethinkdb
|
||||
remove_app turtl
|
||||
remove_completion_param install_turtl
|
||||
|
|
|
@ -53,6 +53,8 @@ function remove_turn {
|
|||
if [ -f /etc/systemd/system/turn.service ]; then
|
||||
rm /etc/systemd/system/turn.service
|
||||
fi
|
||||
systemctl daemon-reload
|
||||
|
||||
apt-get -y remove coturn
|
||||
rm -rf /var/lib/turn
|
||||
sed -i "/# TURN Server/,/# End of TURN Server/d" /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
||||
|
|
Loading…
Reference in New Issue