Sfoglia il codice sorgente

Try to keep systemd happy

Bob Mottram 7 anni fa
parent
commit
1f1c5d30d1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -351,6 +351,8 @@ function remove_turtl {
351 351
     systemctl stop turtl
352 352
     systemctl disable turtl
353 353
     rm /etc/systemd/system/turtl.service
354
+    systemctl daemon-reload
355
+
354 356
     remove_rethinkdb
355 357
     remove_app turtl
356 358
     remove_completion_param install_turtl

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

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