瀏覽代碼

Run additional housekeeping scripts for postactiv

Bob Mottram 8 年之前
父節點
當前提交
eb132448bf
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      src/freedombone-app-postactiv

+ 7
- 0
src/freedombone-app-postactiv 查看文件

@@ -184,6 +184,13 @@ function postactiv_running_script {
184 184
     echo "    cd /var/www/${POSTACTIV_DOMAIN_NAME}/htdocs" >> /etc/cron.hourly/postactiv-daemons
185 185
     echo '    scripts/startdaemons.sh' >> /etc/cron.hourly/postactiv-daemons
186 186
     echo 'fi' >> /etc/cron.hourly/postactiv-daemons
187
+
188
+    echo "cd /var/www/${POSTACTIV_DOMAIN_NAME}/htdocs" >> /etc/cron.hourly/postactiv-daemons
189
+    echo 'php scripts/delete_orphan_files.php' >> /etc/cron.hourly/postactiv-daemons
190
+    echo 'php scripts/clean_thumbnails.php' >> /etc/cron.hourly/postactiv-daemons
191
+    echo '# php scripts/cleanup_file_table.php' >> /etc/cron.hourly/postactiv-daemons
192
+    echo '# php scripts/upgrade.php' >> /etc/cron.hourly/postactiv-daemons
193
+
187 194
     chmod +x /etc/cron.hourly/postactiv-daemons
188 195
 }
189 196