2023-02-26 00:08:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -u
|
|
|
|
set -e
|
|
|
|
|
2024-05-05 17:14:14 +00:00
|
|
|
WORKDIR=/var/www/html
|
|
|
|
counter=0
|
|
|
|
while [ ! -d "$WORKDIR" ] && [ "$counter" -lt 120 ]; do
|
|
|
|
echo "GYR:POSTDEPLOY:WAITING"
|
|
|
|
counter=$((counter+1))
|
|
|
|
sleep 1
|
|
|
|
done
|
|
|
|
cd "$WORKDIR" || exit 1
|
|
|
|
|
2023-02-26 00:08:17 +00:00
|
|
|
echo "GYR:POSTDEPLOY:START ($(pwd))"
|
|
|
|
find . -maxdepth 1
|
2024-05-05 17:06:10 +00:00
|
|
|
echo "GYR:POSTDEPLOY:UPGRADE"
|
2023-02-26 00:08:17 +00:00
|
|
|
php -d memory_limit=-1 occ upgrade
|
2024-05-05 17:06:10 +00:00
|
|
|
echo "GYR:POSTDEPLOY:DB"
|
2023-02-26 00:08:17 +00:00
|
|
|
php -d memory_limit=-1 occ db:convert-filecache-bigint
|
|
|
|
php -d memory_limit=-1 occ db:add-missing-indices
|
2024-05-05 17:06:10 +00:00
|
|
|
echo "GYR:POSTDEPLOY:HTACCESS"
|
2024-01-09 11:04:12 +00:00
|
|
|
php -d memory_limit=-1 occ maintenance:update:htaccess
|
2024-05-05 17:06:10 +00:00
|
|
|
echo "GYR:POSTDEPLOY:MAINTENANCE:OFF"
|
2024-01-09 11:04:12 +00:00
|
|
|
php -d memory_limit=-1 occ maintenance:mode --off
|
|
|
|
php -d memory_limit=-1 occ maintenance:mode --off || true
|
2023-02-26 00:08:17 +00:00
|
|
|
echo "GYR:POSTDEPLOY:END"
|
|
|
|
|