Call php without number

This commit is contained in:
Eric Nemchik
2022-09-09 21:25:21 -05:00
parent c30ba44888
commit c4d302097e
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -6,4 +6,4 @@
0 3 * * 6 run-parts /etc/periodic/weekly
0 5 1 * * run-parts /etc/periodic/monthly
# nextcloud cron
*/5 * * * * s6-setuidgid abc php8 -f /config/www/nextcloud/cron.php
*/5 * * * * s6-setuidgid abc php -f /config/www/nextcloud/cron.php
+1 -1
View File
@@ -18,5 +18,5 @@ fi
if [[ ! -f /config/crontabs/root ]]; then
cp /defaults/root /config/crontabs/root
fi
sed -i "s|s6-setuidgid abc php7 -f /config/www/nextcloud/cron.php|s6-setuidgid abc php8 -f /config/www/nextcloud/cron.php|" /config/crontabs/root
sed -i "s|s6-setuidgid abc php[78] -f /config/www/nextcloud/cron.php|s6-setuidgid abc php -f /config/www/nextcloud/cron.php|" /config/crontabs/root
cp /config/crontabs/root /etc/crontabs/root
+2 -2
View File
@@ -2,7 +2,7 @@
## Set alias for occ and make executable
if [[ ! -f /usr/bin/occ ]]; then
echo -e '#!/bin/bash\nsudo -u abc -s /bin/bash -c "php8 /config/www/nextcloud/occ $*"' > /usr/bin/occ
echo -e '#!/bin/bash\nsudo -u abc -s /bin/bash -c "php /config/www/nextcloud/occ $*"' > /usr/bin/occ
fi
if [[ ! -x /usr/bin/occ ]]; then
@@ -11,7 +11,7 @@ fi
## Set alias for updater.phar and make executable
if [[ ! -f /usr/bin/updater.phar ]]; then
echo -e '#!/bin/bash\nsudo -u abc -s /bin/bash -c "php8 /config/www/nextcloud/updater/updater.phar $*"' > /usr/bin/updater.phar
echo -e '#!/bin/bash\nsudo -u abc -s /bin/bash -c "php /config/www/nextcloud/updater/updater.phar $*"' > /usr/bin/updater.phar
fi
if [[ ! -x /usr/bin/updater.phar ]]; then