mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
Merge pull request #1169 from nextcloud/enh/1164/fix-updatenotification-removal
fix removal of the updatenotification app for migrated instances
This commit is contained in:
commit
b5b84fa6c7
1 changed files with 3 additions and 0 deletions
|
|
@ -135,8 +135,11 @@ if ! [ -f "/mnt/ncdata/skip.update" ]; then
|
||||||
php /var/www/html/occ app:update --all
|
php /var/www/html/occ app:update --all
|
||||||
|
|
||||||
# Fix removing the updatenotification for old instances
|
# Fix removing the updatenotification for old instances
|
||||||
|
UPDATENOTIFICATION_STATUS="$(php /var/www/html/occ config:app:get updatenotification enabled)"
|
||||||
if [ -d "/var/www/html/apps/updatenotification" ]; then
|
if [ -d "/var/www/html/apps/updatenotification" ]; then
|
||||||
php /var/www/html/occ app:disable updatenotification
|
php /var/www/html/occ app:disable updatenotification
|
||||||
|
elif [ "$UPDATENOTIFICATION_STATUS" != "no" ] && [ -n "$UPDATENOTIFICATION_STATUS" ]; then
|
||||||
|
php /var/www/html/occ config:app:set updatenotification enabled --value="no"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue