Add memory limit setting to php command.
This commit is contained in:
@ -12,6 +12,7 @@
|
|||||||
# - Test that everything works after an update and reboot of both NC + Docker.
|
# - Test that everything works after an update and reboot of both NC + Docker.
|
||||||
|
|
||||||
# Check if a job is already going.
|
# Check if a job is already going.
|
||||||
|
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
|
||||||
PROG="$(basename -- "${BASH_SOURCE[0]}")"
|
PROG="$(basename -- "${BASH_SOURCE[0]}")"
|
||||||
RUNNING=`ps -ef | grep $PROG | grep -v grep | grep -v $$ | grep -v "sh -c" | wc -l`
|
RUNNING=`ps -ef | grep $PROG | grep -v grep | grep -v $$ | grep -v "sh -c" | wc -l`
|
||||||
if (( $RUNNING > 0 )); then
|
if (( $RUNNING > 0 )); then
|
||||||
@ -19,7 +20,15 @@ if (( $RUNNING > 0 )); then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# 2023-08-25 From crontab.
|
# 2023-08-25 From crontab.
|
||||||
sh -c "docker exec nc-app sudo -u www-data php cron.php --define apc.enable_cli=1"
|
source $DIR/.env
|
||||||
|
sh -c "
|
||||||
|
docker exec nc-app \
|
||||||
|
sudo -u www-data \
|
||||||
|
php \
|
||||||
|
-d apc.enable_cli=1 \
|
||||||
|
-d memory_limit=$PHP_MEMORY_LIMIT \
|
||||||
|
-f cron.php \
|
||||||
|
"
|
||||||
|
|
||||||
# 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 ."
|
||||||
|
Reference in New Issue
Block a user