|
@@ -199,7 +199,9 @@ function postactiv_create_database {
|
199
|
199
|
function postactiv_running_script {
|
200
|
200
|
# check that the daemon is running
|
201
|
201
|
echo '#!/bin/bash' > /etc/cron.hourly/postactiv-daemons
|
202
|
|
- echo 'daemon_lines=$(ps aux | grep "${POSTACTIV_DOMAIN_NAME}/htdocs/scripts/queuedaemon.php" | grep "/var/www")' >> /etc/cron.hourly/postactiv-daemons
|
|
202
|
+ echo -n 'daemon_lines=$(ps aux | grep "' >> /etc/cron.hourly/postactiv-daemons
|
|
203
|
+ echo -n "${POSTACTIV_DOMAIN_NAME}" >> /etc/cron.hourly/postactiv-daemons
|
|
204
|
+ echo '/htdocs/scripts/queuedaemon.php" | grep "/var/www")' >> /etc/cron.hourly/postactiv-daemons
|
203
|
205
|
echo 'if [[ $daemon_lines != *"/var/www/"* ]]; then' >> /etc/cron.hourly/postactiv-daemons
|
204
|
206
|
|
205
|
207
|
echo " ADMIN_USER=\$(cat $COMPLETION_FILE | grep 'Admin user' | awk -F ':' '{print \$2}')" >> /etc/cron.hourly/postactiv-daemons
|