nextcloud-update
angepasste Version von ~/bin/nextcloud-update erstellt.
This commit is contained in:
parent
ff896b2f76
commit
f196193d29
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env bash
|
||||
## SOURCE: https://lab.uberspace.de/guide_nextcloud/?highlight=nextcloud#updates
|
||||
## Updater automatically works in maintenance:mode.
|
||||
## Use the Uberspace backup system for files and database if you need to roll back.
|
||||
## The Nextcloud updater creates backups only to safe base and app code data and config files
|
||||
## so it takes ressources you might need for your productive data.
|
||||
## Deactivate NC-updater Backups with --no-backup
|
||||
php /var/www/virtual/saad/cloud.chaaban.berlin/updater/updater.phar -vv --no-backup --no-interaction
|
||||
|
||||
## database optimisations
|
||||
php /var/www/virtual/saad/cloud.chaaban.berlin db:add-missing-primary-keys --no-interaction
|
||||
php /var/www/virtual/saad/cloud.chaaban.berlin db:add-missing-columns --no-interaction
|
||||
php /var/www/virtual/saad/cloud.chaaban.berlin db:add-missing-indices --no-interaction
|
||||
php /var/www/virtual/saad/cloud.chaaban.berlin db:convert-filecache-bigint --no-interaction
|
||||
|
||||
php /var/www/virtual/saad/cloud.chaaban.berlin app:update --all
|
||||
## App updates may require additional steps to be done by the `upgrade` command
|
||||
php /var/www/virtual/saad/cloud.chaaban.berlin upgrade
|
||||
/usr/sbin/restorecon -R /var/www/virtual/saad/cloud.chaaban.berlin
|
||||
|
||||
## FYI: If that file exist...
|
||||
if test -f ~/etc/services.d/notify_push.ini
|
||||
then supervisorctl restart notify_push
|
||||
fi
|
Loading…
Reference in New Issue