Procházet zdrojové kódy

Remove expiry script if gs/pA is removed

Bob Mottram před 6 roky
rodič
revize
03bfbc7a9f

+ 7
- 0
src/freedombone-app-gnusocial Zobrazit soubor

@@ -616,6 +616,13 @@ function remove_gnusocial {
616 616
         rm /usr/bin/gnusocial-firewall
617 617
     fi
618 618
 
619
+    if [ -f /etc/cron.daily/gnusocial-expire ]; then
620
+        rm /etc/cron.daily/gnusocial-expire
621
+    fi
622
+    if [ -f /usr/bin/gnusocial-expire-posts ]; then
623
+        rm /usr/bin/gnusocial-expire-posts
624
+    fi
625
+
619 626
     function_check remove_ddns_domain
620 627
     remove_ddns_domain "$GNUSOCIAL_DOMAIN_NAME"
621 628
 }

+ 7
- 0
src/freedombone-app-postactiv Zobrazit soubor

@@ -628,6 +628,13 @@ function remove_postactiv {
628 628
         rm /usr/bin/postactiv-firewall
629 629
     fi
630 630
 
631
+    if [ -f /etc/cron.daily/postactiv-expire ]; then
632
+        rm /etc/cron.daily/postactiv-expire
633
+    fi
634
+    if [ -f /usr/bin/postactiv-expire-posts ]; then
635
+        rm /usr/bin/postactiv-expire-posts
636
+    fi
637
+
631 638
     function_check remove_ddns_domain
632 639
     remove_ddns_domain "$POSTACTIV_DOMAIN_NAME"
633 640
 }

+ 1
- 1
src/freedombone-upgrade Zobrazit soubor

@@ -61,7 +61,7 @@ if [ $DEVELOPMENT_BRANCH ]; then
61 61
     fi
62 62
 fi
63 63
 
64
-# upgrading file prevents USB canary from activating
64
+# upgrading file prevents USB canary or other jobs from activating
65 65
 if [ ! -f /tmp/.upgrading ]; then
66 66
     touch /tmp/.upgrading
67 67
 fi