mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
Merge pull request #4807 from nextcloud/enh/4806/improve-appstorage
nextcloud: improve getting values for APPSTORAGE
This commit is contained in:
commit
3d41d79682
1 changed files with 6 additions and 2 deletions
|
|
@ -162,8 +162,12 @@ if ! [ -f "$NEXTCLOUD_DATA_DIR/skip.update" ]; then
|
||||||
declare -Ag APPSTORAGE
|
declare -Ag APPSTORAGE
|
||||||
echo "Disabling apps before the update in order to make the update procedure more safe. This can take a while..."
|
echo "Disabling apps before the update in order to make the update procedure more safe. This can take a while..."
|
||||||
for app in "${NC_APPS_ARRAY[@]}"; do
|
for app in "${NC_APPS_ARRAY[@]}"; do
|
||||||
APPSTORAGE[$app]=$(php /var/www/html/occ config:app:get "$app" enabled)
|
if APPSTORAGE[$app]="$(php /var/www/html/occ config:app:get "$app" enabled)"; then
|
||||||
php /var/www/html/occ app:disable "$app"
|
php /var/www/html/occ app:disable "$app"
|
||||||
|
else
|
||||||
|
APPSTORAGE[$app]=""
|
||||||
|
echo "Not disabling $app because the occ command to get the enabled state was failing."
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue