Pārlūkot izejas kodu

Run additional housekeeping scripts for postactiv

Bob Mottram 8 gadus atpakaļ
vecāks
revīzija
eb132448bf
1 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. 7
    0
      src/freedombone-app-postactiv

+ 7
- 0
src/freedombone-app-postactiv Parādīt failu

184
     echo "    cd /var/www/${POSTACTIV_DOMAIN_NAME}/htdocs" >> /etc/cron.hourly/postactiv-daemons
184
     echo "    cd /var/www/${POSTACTIV_DOMAIN_NAME}/htdocs" >> /etc/cron.hourly/postactiv-daemons
185
     echo '    scripts/startdaemons.sh' >> /etc/cron.hourly/postactiv-daemons
185
     echo '    scripts/startdaemons.sh' >> /etc/cron.hourly/postactiv-daemons
186
     echo 'fi' >> /etc/cron.hourly/postactiv-daemons
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
     chmod +x /etc/cron.hourly/postactiv-daemons
194
     chmod +x /etc/cron.hourly/postactiv-daemons
188
 }
195
 }
189
 
196