Starting gnusocial daemons

This commit is contained in:
Bob Mottram 2018-05-08 18:58:16 +01:00
parent 4a5c9c8d55
commit 519d3ee197
2 changed files with 10 additions and 2 deletions

View File

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

View File

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