mirror of
https://github.com/EV21/uberspace-helper.git
synced 2026-10-08 04:43:18 +02:00
feat(Nextcloud): add uninstall parameter and do some refactorings
This commit is contained in:
3 files changed
+138
-59
No files matched your search
+13
-8
@@ -1,22 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
APP_LOCATION=$HOME/html
|
||||
APP_LOCATION=~/html
|
||||
|
||||
function ncc
|
||||
{
|
||||
php $APP_LOCATION/occ "$@"
|
||||
}
|
||||
|
||||
## 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 "$APP_LOCATION"/updater/updater.phar --no-backup --no-interaction
|
||||
php $APP_LOCATION/updater/updater.phar --no-backup --no-interaction
|
||||
|
||||
## database optimisations
|
||||
php "$APP_LOCATION"/occ db:add-missing-primary-keys --no-interaction
|
||||
php "$APP_LOCATION"/occ db:add-missing-columns --no-interaction
|
||||
php "$APP_LOCATION"/occ db:add-missing-indices --no-interaction
|
||||
php "$APP_LOCATION"/occ db:convert-filecache-bigint --no-interaction
|
||||
ncc db:add-missing-primary-keys --no-interaction
|
||||
ncc db:add-missing-columns --no-interaction
|
||||
ncc db:add-missing-indices --no-interaction
|
||||
ncc db:convert-filecache-bigint --no-interaction
|
||||
|
||||
php "$APP_LOCATION"/occ app:update --all
|
||||
/usr/sbin/restorecon -R "$APP_LOCATION"
|
||||
ncc app:update --all
|
||||
/usr/sbin/restorecon -R $APP_LOCATION
|
||||
|
||||
if test -f ~/etc/services.d/notify_push.ini
|
||||
then supervisorctl restart notify_push
|
||||
|
||||
Reference in new issue
Block a user