Sfoglia il codice sorgente

Try to keep systemd happy

Bob Mottram 8 anni fa
parent
commit
1f1c5d30d1

+ 1
- 0
src/freedombone-app-cryptpad Vedi File

157
     if [ -f /etc/systemd/system/cryptpad.service ]; then
157
     if [ -f /etc/systemd/system/cryptpad.service ]; then
158
         rm /etc/systemd/system/cryptpad.service
158
         rm /etc/systemd/system/cryptpad.service
159
     fi
159
     fi
160
+    systemctl daemon-reload
160
 
161
 
161
     function_check remove_nodejs
162
     function_check remove_nodejs
162
     remove_nodejs cryptpad
163
     remove_nodejs cryptpad

+ 1
- 0
src/freedombone-app-etherpad Vedi File

415
         systemctl disable etherpad
415
         systemctl disable etherpad
416
         rm /etc/systemd/system/etherpad.service
416
         rm /etc/systemd/system/etherpad.service
417
     fi
417
     fi
418
+    systemctl daemon-reload
418
     nginx_dissite $ETHERPAD_DOMAIN_NAME
419
     nginx_dissite $ETHERPAD_DOMAIN_NAME
419
     remove_certs $ETHERPAD_DOMAIN_NAME
420
     remove_certs $ETHERPAD_DOMAIN_NAME
420
     if [ -d /var/www/$ETHERPAD_DOMAIN_NAME ]; then
421
     if [ -d /var/www/$ETHERPAD_DOMAIN_NAME ]; then

+ 1
- 0
src/freedombone-app-ghost Vedi File

286
     systemctl stop ghost
286
     systemctl stop ghost
287
     systemctl disable ghost
287
     systemctl disable ghost
288
     rm /etc/systemd/system/ghost.service
288
     rm /etc/systemd/system/ghost.service
289
+    systemctl daemon-reload
289
 
290
 
290
     function_check remove_nodejs
291
     function_check remove_nodejs
291
     remove_nodejs ghost
292
     remove_nodejs ghost

+ 2
- 0
src/freedombone-app-gogs Vedi File

355
     fi
355
     fi
356
     systemctl stop gogs
356
     systemctl stop gogs
357
     systemctl disable gogs
357
     systemctl disable gogs
358
+
358
     nginx_dissite ${GIT_DOMAIN_NAME}
359
     nginx_dissite ${GIT_DOMAIN_NAME}
359
     remove_certs ${GIT_DOMAIN_NAME}
360
     remove_certs ${GIT_DOMAIN_NAME}
360
     if [ -d /var/www/${GIT_DOMAIN_NAME} ]; then
361
     if [ -d /var/www/${GIT_DOMAIN_NAME} ]; then
366
     function_check drop_database
367
     function_check drop_database
367
     drop_database gogs
368
     drop_database gogs
368
     rm /etc/systemd/system/gogs.service
369
     rm /etc/systemd/system/gogs.service
370
+    systemctl daemon-reload
369
     rm -rf /home/${GOGS_USERNAME}/*
371
     rm -rf /home/${GOGS_USERNAME}/*
370
     remove_onion_service gogs ${GIT_ONION_PORT} 9418
372
     remove_onion_service gogs ${GIT_ONION_PORT} 9418
371
     remove_completion_param "install_gogs"
373
     remove_completion_param "install_gogs"

+ 1
- 0
src/freedombone-app-ipfs Vedi File

155
     systemctl disable ipfs
155
     systemctl disable ipfs
156
     systemctl daemon-reload
156
     systemctl daemon-reload
157
     rm /etc/systemd/system/ipfs.service
157
     rm /etc/systemd/system/ipfs.service
158
+    systemctl daemon-reload
158
     rm -rf $GOPATH/src/github.com/ipfs
159
     rm -rf $GOPATH/src/github.com/ipfs
159
     firewall_remove $IPFS_PORT tcp
160
     firewall_remove $IPFS_PORT tcp
160
     remove_completion_param install_ipfs
161
     remove_completion_param install_ipfs

+ 1
- 0
src/freedombone-app-koel Vedi File

426
     if [ -f /etc/systemd/system/koel.service ]; then
426
     if [ -f /etc/systemd/system/koel.service ]; then
427
         rm /etc/systemd/system/koel.service
427
         rm /etc/systemd/system/koel.service
428
     fi
428
     fi
429
+    systemctl daemon-reload
429
 
430
 
430
     function_check remove_nodejs
431
     function_check remove_nodejs
431
     remove_nodejs koel
432
     remove_nodejs koel

+ 1
- 0
src/freedombone-app-librevault Vedi File

108
     systemctl stop librevault
108
     systemctl stop librevault
109
     systemctl disable librevault
109
     systemctl disable librevault
110
     rm /etc/systemd/system/librevault.service
110
     rm /etc/systemd/system/librevault.service
111
+    systemctl daemon-reload
111
     remove_completion_param install_librevault
112
     remove_completion_param install_librevault
112
     remove_completion_param configure_firewall_for_librevault
113
     remove_completion_param configure_firewall_for_librevault
113
 }
114
 }

+ 1
- 0
src/freedombone-app-mailpile Vedi File

226
     systemctl stop mailpile
226
     systemctl stop mailpile
227
     systemctl disable mailpile
227
     systemctl disable mailpile
228
     rm /etc/systemd/system/mailpile.service
228
     rm /etc/systemd/system/mailpile.service
229
+    systemctl daemon-reload
229
 
230
 
230
     read_config_param "MAILPILE_DOMAIN_NAME"
231
     read_config_param "MAILPILE_DOMAIN_NAME"
231
     nginx_dissite $MAILPILE_DOMAIN_NAME
232
     nginx_dissite $MAILPILE_DOMAIN_NAME

+ 1
- 0
src/freedombone-app-matrix Vedi File

478
     if [ -f /etc/systemd/system/matrix.service ]; then
478
     if [ -f /etc/systemd/system/matrix.service ]; then
479
         rm /etc/systemd/system/matrix.service
479
         rm /etc/systemd/system/matrix.service
480
     fi
480
     fi
481
+    systemctl daemon-reload
481
     apt-get -y remove --purge coturn
482
     apt-get -y remove --purge coturn
482
     cd /etc/matrix
483
     cd /etc/matrix
483
     pip uninstall .
484
     pip uninstall .

+ 1
- 0
src/freedombone-app-mediagoblin Vedi File

235
     systemctl stop mediagoblin
235
     systemctl stop mediagoblin
236
     systemctl disable mediagoblin
236
     systemctl disable mediagoblin
237
     rm /etc/systemd/system/mediagoblin.service
237
     rm /etc/systemd/system/mediagoblin.service
238
+    systemctl daemon-reload
238
 
239
 
239
     function_check remove_onion_service
240
     function_check remove_onion_service
240
     remove_onion_service mediagoblin ${MEDIAGOBLIN_ONION_PORT}
241
     remove_onion_service mediagoblin ${MEDIAGOBLIN_ONION_PORT}

+ 1
- 0
src/freedombone-app-movim Vedi File

270
     systemctl stop movim
270
     systemctl stop movim
271
     systemctl disable movim
271
     systemctl disable movim
272
     rm /etc/systemd/system/movim.service
272
     rm /etc/systemd/system/movim.service
273
+    systemctl daemon-reload
273
 
274
 
274
     read_config_param "MY_USERNAME"
275
     read_config_param "MY_USERNAME"
275
     echo "Removing $MOVIM_DOMAIN_NAME"
276
     echo "Removing $MOVIM_DOMAIN_NAME"

+ 1
- 0
src/freedombone-app-radicale Vedi File

274
     if [ -f /etc/systemd/system/radicale.service ]; then
274
     if [ -f /etc/systemd/system/radicale.service ]; then
275
         rm /etc/systemd/system/radicale.service
275
         rm /etc/systemd/system/radicale.service
276
     fi
276
     fi
277
+    systemctl daemon-reload
277
     if [ -f /etc/nginx/sites-available/radicale ]; then
278
     if [ -f /etc/nginx/sites-available/radicale ]; then
278
         rm /etc/nginx/sites-available/radicale
279
         rm /etc/nginx/sites-available/radicale
279
     fi
280
     fi

+ 1
- 0
src/freedombone-app-scuttlebot Vedi File

167
     systemctl stop scuttlebot
167
     systemctl stop scuttlebot
168
     systemctl disable scuttlebot
168
     systemctl disable scuttlebot
169
     rm /etc/systemd/system/scuttlebot.service
169
     rm /etc/systemd/system/scuttlebot.service
170
+    systemctl daemon-reload
170
 
171
 
171
     userdel -r scuttlebot
172
     userdel -r scuttlebot
172
 
173
 

+ 2
- 0
src/freedombone-app-searx Vedi File

789
     systemctl stop searx
789
     systemctl stop searx
790
     systemctl disable searx
790
     systemctl disable searx
791
     rm /etc/systemd/system/searx.service
791
     rm /etc/systemd/system/searx.service
792
+    systemctl daemon-reload
793
+
792
     function_check remove_onion_service
794
     function_check remove_onion_service
793
     remove_onion_service searx ${SEARX_ONION_PORT}
795
     remove_onion_service searx ${SEARX_ONION_PORT}
794
     userdel -r searx
796
     userdel -r searx

+ 2
- 1
src/freedombone-app-syncthing Vedi File

458
     firewall_remove ${SYNCTHING_PORT}
458
     firewall_remove ${SYNCTHING_PORT}
459
     systemctl stop syncthing
459
     systemctl stop syncthing
460
     systemctl disable syncthing
460
     systemctl disable syncthing
461
-    apt-get -yq remove --purge syncthing
462
     rm /etc/systemd/system/syncthing.service
461
     rm /etc/systemd/system/syncthing.service
462
+    systemctl daemon-reload
463
+    apt-get -yq remove --purge syncthing
463
     sed -i "/${PROJECT_NAME}-syncthing/d" /etc/crontab
464
     sed -i "/${PROJECT_NAME}-syncthing/d" /etc/crontab
464
     remove_completion_param install_syncthing
465
     remove_completion_param install_syncthing
465
     remove_completion_param configure_firewall_for_syncthing
466
     remove_completion_param configure_firewall_for_syncthing

+ 2
- 0
src/freedombone-app-turtl Vedi File

351
     systemctl stop turtl
351
     systemctl stop turtl
352
     systemctl disable turtl
352
     systemctl disable turtl
353
     rm /etc/systemd/system/turtl.service
353
     rm /etc/systemd/system/turtl.service
354
+    systemctl daemon-reload
355
+
354
     remove_rethinkdb
356
     remove_rethinkdb
355
     remove_app turtl
357
     remove_app turtl
356
     remove_completion_param install_turtl
358
     remove_completion_param install_turtl

+ 2
- 0
src/freedombone-utils-turn Vedi File

53
     if [ -f /etc/systemd/system/turn.service ]; then
53
     if [ -f /etc/systemd/system/turn.service ]; then
54
         rm /etc/systemd/system/turn.service
54
         rm /etc/systemd/system/turn.service
55
     fi
55
     fi
56
+    systemctl daemon-reload
57
+
56
     apt-get -y remove coturn
58
     apt-get -y remove coturn
57
     rm -rf /var/lib/turn
59
     rm -rf /var/lib/turn
58
     sed -i "/# TURN Server/,/# End of TURN Server/d" /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
60
     sed -i "/# TURN Server/,/# End of TURN Server/d" /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}