service-nextcloud/postdeploy.sh

18 lines
482 B
Bash
Raw Normal View History

2023-02-26 00:08:17 +00:00
#!/bin/sh
set -u
set -e
cd /var/www/html
echo "GYR:POSTDEPLOY:START ($(pwd))"
find . -maxdepth 1
2024-01-09 11:04:12 +00:00
php -d memory_limit=-1 occ maintenance:mode --on
2023-02-26 00:08:17 +00:00
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
2024-01-09 11:04:12 +00:00
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
2023-02-26 00:08:17 +00:00
echo "GYR:POSTDEPLOY:END"