gnusocial update script

This commit is contained in:
Bob Mottram 2017-04-02 17:55:05 +01:00
parent 55c68abc6e
commit 260b4a7de0
1 changed files with 3 additions and 1 deletions

View File

@ -225,7 +225,9 @@ function gnusocial_create_database {
function gnusocial_running_script {
# check that the daemon is running
echo '#!/bin/bash' > /etc/cron.hourly/gnusocial-daemons
echo 'daemon_lines=$(ps aux | grep "${GNUSOCIAL_DOMAIN_NAME}/htdocs/scripts/queuedaemon.php" | grep "/var/www")' >> /etc/cron.hourly/gnusocial-daemons
echo -n 'daemon_lines=$(ps aux | grep "'
echo -n "${GNUSOCIAL_DOMAIN_NAME}"
echo '/htdocs/scripts/queuedaemon.php" | grep "/var/www")' >> /etc/cron.hourly/gnusocial-daemons
echo 'if [[ $daemon_lines != *"/var/www/"* ]]; then' >> /etc/cron.hourly/gnusocial-daemons
echo " ADMIN_USER=\$(cat $COMPLETION_FILE | grep 'Admin user' | awk -F ':' '{print \$2}')" >> /etc/cron.hourly/gnusocial-daemons