gnusocial update script
This commit is contained in:
parent
55c68abc6e
commit
260b4a7de0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue