浏览代码

Starting gnusocial daemons

Bob Mottram 7 年前
父节点
当前提交
519d3ee197
共有 2 个文件被更改,包括 10 次插入2 次删除
  1. 4
    1
      src/freedombone-app-gnusocial
  2. 6
    1
      src/freedombone-app-postactiv

+ 4
- 1
src/freedombone-app-gnusocial 查看文件

935
         sed -i 's|"theme":.*|"theme": "base16-apathy.css",|g' "/var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs/static/config.json"
935
         sed -i 's|"theme":.*|"theme": "base16-apathy.css",|g' "/var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs/static/config.json"
936
     fi
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
     cd "/var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs" || exit 236482684
940
     cd "/var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs" || exit 236482684
940
     php scripts/checkschema.php
941
     php scripts/checkschema.php
942
+    sh scripts/startdaemons.sh
943
+
941
     /etc/cron.hourly/gnusocial-daemons
944
     /etc/cron.hourly/gnusocial-daemons
942
 
945
 
943
     systemctl restart nginx
946
     systemctl restart nginx

+ 6
- 1
src/freedombone-app-postactiv 查看文件

952
 
952
 
953
     expire_gnusocial_posts "$POSTACTIV_DOMAIN_NAME" "postactiv" "$POSTACTIV_EXPIRE_MONTHS"
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
     /etc/cron.hourly/postactiv-daemons
961
     /etc/cron.hourly/postactiv-daemons
957
 
962
 
958
     systemctl restart nginx
963
     systemctl restart nginx