Browse Source

Starting gnusocial daemons

Bob Mottram 6 years ago
parent
commit
519d3ee197
2 changed files with 10 additions and 2 deletions
  1. 4
    1
      src/freedombone-app-gnusocial
  2. 6
    1
      src/freedombone-app-postactiv

+ 4
- 1
src/freedombone-app-gnusocial View File

@@ -935,9 +935,12 @@ function install_gnusocial {
935 935
         sed -i 's|"theme":.*|"theme": "base16-apathy.css",|g' "/var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs/static/config.json"
936 936
     fi
937 937
 
938
-    # unleash the daemons!
938
+    # this has to be run as root initially, otherwise database tables
939
+    # don't get created
939 940
     cd "/var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs" || exit 236482684
940 941
     php scripts/checkschema.php
942
+    sh scripts/startdaemons.sh
943
+
941 944
     /etc/cron.hourly/gnusocial-daemons
942 945
 
943 946
     systemctl restart nginx

+ 6
- 1
src/freedombone-app-postactiv View File

@@ -952,7 +952,12 @@ function install_postactiv {
952 952
 
953 953
     expire_gnusocial_posts "$POSTACTIV_DOMAIN_NAME" "postactiv" "$POSTACTIV_EXPIRE_MONTHS"
954 954
 
955
-    # unleash the daemons!
955
+    # this has to be run as root initially, otherwise database tables
956
+    # don't get created
957
+    cd "/var/www/$POSTACTIV_DOMAIN_NAME/htdocs" || exit 3658254254
958
+    sh scripts/startdaemons.sh
959
+    php scripts/checkschema.php
960
+
956 961
     /etc/cron.hourly/postactiv-daemons
957 962
 
958 963
     systemctl restart nginx