Call on www-data using sudo within the container, gives better output.

This commit is contained in:
2025-06-16 12:53:43 -06:00
parent 93be789790
commit cf1e23e91c

View File

@ -19,7 +19,7 @@ if (( $RUNNING > 0 )); then
fi fi
# 2023-08-25 From crontab. # 2023-08-25 From crontab.
sh -c "docker exec -u www-data nc-app php cron.php --define apc.enable_cli=1" sh -c "docker exec nc-app sudo -u www-data php cron.php --define apc.enable_cli=1"
# 2023-08-25 From fixes.sh, keep ownership correct and apps up to date. # 2023-08-25 From fixes.sh, keep ownership correct and apps up to date.
sh -c "docker exec -i nc-app chown -Rc www-data:www-data ." sh -c "docker exec -i nc-app chown -Rc www-data:www-data ."