Created
April 14, 2023 14:30
-
-
Save realies/23d6d2ceaba1f92ac199a3b7abd3b6da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
{ | |
docker exec --user www-data nextcloud php cron.php | |
docker exec --user www-data nextcloud php /var/www/html/occ db:add-missing-columns --no-interaction | |
docker exec --user www-data nextcloud php /var/www/html/occ db:add-missing-primary-keys --no-interaction | |
docker exec --user www-data nextcloud php /var/www/html/occ db:add-missing-indices --no-interaction | |
docker exec --user www-data nextcloud php /var/www/html/occ db:convert-filecache-bigint --no-interaction | |
docker exec --user www-data nextcloud php /var/www/html/occ maintenance:mimetype:update-db --no-interaction | |
docker exec --user www-data nextcloud php /var/www/html/occ app:update --all --no-interaction | |
#docker exec --user www-data nextcloud php --define apc.enable_cli=1 /var/www/html/updater/updater.phar --no-interaction | |
docker exec --user www-data nextcloud php /var/www/html/occ upgrade --no-interaction | |
docker exec --user www-data nextcloud php /var/www/html/occ db:add-missing-columns --no-interaction | |
docker exec --user www-data nextcloud php /var/www/html/occ db:add-missing-primary-keys --no-interaction | |
docker exec --user www-data nextcloud php /var/www/html/occ db:add-missing-indices --no-interaction | |
docker exec --user www-data nextcloud php /var/www/html/occ db:convert-filecache-bigint --no-interaction | |
docker exec --user www-data nextcloud php /var/www/html/occ maintenance:mimetype:update-db --no-interaction | |
docker exec --user www-data nextcloud php /var/www/html/occ app:update --all --no-interaction | |
docker exec --user www-data nextcloud php /var/www/html/occ maintenance:repair --no-interaction | |
} 2>&1 | tee /mnt/user/appdata/nextcloud/log/autoupdates/$(date "+%Y-%m-%d").log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment