diff --git a/src/freedombone-app-gnusocial b/src/freedombone-app-gnusocial index a8dfb111..65ca6504 100755 --- a/src/freedombone-app-gnusocial +++ b/src/freedombone-app-gnusocial @@ -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