瀏覽代碼

Fix hourly daemons

Bob Mottram 8 年之前
父節點
當前提交
9ec20428da
共有 2 個檔案被更改,包括 5 行新增3 行删除
  1. 2
    2
      src/freedombone-app-gnusocial
  2. 3
    1
      src/freedombone-app-postactiv

+ 2
- 2
src/freedombone-app-gnusocial 查看文件

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 -n 'daemon_lines=$(ps aux | grep "'
229
-    echo -n "${GNUSOCIAL_DOMAIN_NAME}"
228
+    echo -n 'daemon_lines=$(ps aux | grep "'>> /etc/cron.hourly/gnusocial-daemons
229
+    echo -n "${GNUSOCIAL_DOMAIN_NAME}">> /etc/cron.hourly/gnusocial-daemons
230
     echo '/htdocs/scripts/queuedaemon.php" | grep "/var/www")' >> /etc/cron.hourly/gnusocial-daemons
230
     echo '/htdocs/scripts/queuedaemon.php" | grep "/var/www")' >> /etc/cron.hourly/gnusocial-daemons
231
     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
232
 
232
 

+ 3
- 1
src/freedombone-app-postactiv 查看文件

199
 function postactiv_running_script {
199
 function postactiv_running_script {
200
     # check that the daemon is running
200
     # check that the daemon is running
201
     echo '#!/bin/bash' > /etc/cron.hourly/postactiv-daemons
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
     echo 'if [[ $daemon_lines != *"/var/www/"* ]]; then' >> /etc/cron.hourly/postactiv-daemons
205
     echo 'if [[ $daemon_lines != *"/var/www/"* ]]; then' >> /etc/cron.hourly/postactiv-daemons
204
 
206
 
205
     echo "    ADMIN_USER=\$(cat $COMPLETION_FILE | grep 'Admin user' | awk -F ':' '{print \$2}')" >> /etc/cron.hourly/postactiv-daemons
207
     echo "    ADMIN_USER=\$(cat $COMPLETION_FILE | grep 'Admin user' | awk -F ':' '{print \$2}')" >> /etc/cron.hourly/postactiv-daemons