diff --git a/README.md b/README.md index 4f39ddf..5a76276 100644 --- a/README.md +++ b/README.md @@ -225,6 +225,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **21.10.22:** - Fix cron init to properly migrate existing installations to new app location. * **20.08.22:** - Rebasing to alpine 3.15 with php8. Restructure nginx configs ([see changes announcement](https://info.linuxserver.io/issues/2022-08-20-nginx-base)). * **23.01.21:** - Rebasing to alpine 3.13. * **01.06.20:** - Rebasing to alpine 3.12. diff --git a/readme-vars.yml b/readme-vars.yml index 5f64af0..fa1b449 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -52,6 +52,7 @@ app_setup_block: | # changelog changelogs: + - { date: "21.10.22:", desc: "Fix cron init to properly migrate existing installations to new app location." } - { date: "20.08.22:", desc: "Rebasing to alpine 3.15 with php8. Restructure nginx configs ([see changes announcement](https://info.linuxserver.io/issues/2022-08-20-nginx-base))." } - { date: "23.01.21:", desc: "Rebasing to alpine 3.13." } - { date: "01.06.20:", desc: "Rebasing to alpine 3.12." } diff --git a/root/defaults/crontabs/root b/root/defaults/crontabs/root index a72c70b..b8f88b4 100644 --- a/root/defaults/crontabs/root +++ b/root/defaults/crontabs/root @@ -6,4 +6,4 @@ 0 3 * * 6 run-parts /etc/periodic/weekly 0 5 1 * * run-parts /etc/periodic/monthly # freshrss cronjob -*/15 * * * * php /app/www/app/actualize_script.php > /tmp/FreshRSS.log 2>&1 +*/15 * * * * /usr/bin/php /app/www/app/actualize_script.php > /tmp/FreshRSS.log 2>&1 diff --git a/root/etc/cont-init.d/40-install b/root/etc/cont-init.d/40-install index d8e7464..230a387 100644 --- a/root/etc/cont-init.d/40-install +++ b/root/etc/cont-init.d/40-install @@ -36,7 +36,7 @@ fi if [[ ! -f /config/crontabs/root ]]; then cp /defaults/crontabs/root /config/crontabs/root fi -sed -i "s|/usr/bin/php[78] /app/www/app/actualize_script.php > /tmp/FreshRSS.log 2>&1|php /app/www/app/actualize_script.php > /tmp/FreshRSS.log 2>&1|" /config/crontabs/root +sed -E -i "s|.*/freshrss/app/actualize_script.php.*|*/15 * * * * /usr/bin/php /app/www/app/actualize_script.php > /tmp/FreshRSS.log 2>\&1|" /config/crontabs/root cp /config/crontabs/root /etc/crontabs/root # permissions