mirror of
https://github.com/linuxserver/docker-nextcloud.git
synced 2026-06-03 09:57:35 +00:00
Call php without number
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user