Skip to content

Instantly share code, notes, and snippets.

@realies
Created April 14, 2023 14:30
Show Gist options
  • Save realies/23d6d2ceaba1f92ac199a3b7abd3b6da to your computer and use it in GitHub Desktop.
Save realies/23d6d2ceaba1f92ac199a3b7abd3b6da to your computer and use it in GitHub Desktop.
#!/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