Merge pull request #42 from linuxserver/fix-cron

Fix cron init
This commit is contained in:
Eric Nemchik 2022-10-21 20:22:29 -05:00 committed by GitHub
commit 2665c1d617
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

View File

@ -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.

View File

@ -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." }

View File

@ -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

View File

@ -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