service-nextcloud/postdeploy.sh
Glenn 9996951e64
Some checks reported errors
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build was killed
fix: ensure htaccess is up to date
2024-01-09 12:04:12 +01:00

17 lines
482 B
Bash
Executable file

#!/bin/sh
set -u
set -e
cd /var/www/html
echo "GYR:POSTDEPLOY:START ($(pwd))"
find . -maxdepth 1
php -d memory_limit=-1 occ maintenance:mode --on
php -d memory_limit=-1 occ upgrade
php -d memory_limit=-1 occ db:convert-filecache-bigint
php -d memory_limit=-1 occ db:add-missing-indices
php -d memory_limit=-1 occ maintenance:update:htaccess
php -d memory_limit=-1 occ maintenance:mode --off
php -d memory_limit=-1 occ maintenance:mode --off || true
echo "GYR:POSTDEPLOY:END"