Quellcode durchsuchen

gnusocial update script

Bob Mottram vor 8 Jahren
Ursprung
Commit
260b4a7de0
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3
    1
      src/freedombone-app-gnusocial

+ 3
- 1
src/freedombone-app-gnusocial Datei anzeigen

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