1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Fix detection of mail app enabled

This commit is contained in:
Kay0u 2020-12-31 00:59:45 +01:00
parent 23d2629be9
commit 1fe41e5570
No known key found for this signature in database
GPG key ID: AE1DCADB6415A156

View file

@ -245,7 +245,8 @@ then
exec_occ -V
# Upgrade may fail if this app is enabled
exec_occ app:list | grep -q -w mail
# Take all apps enabled, and check if mail is one of them
exec_occ app:list | awk '/Enabled/{f=1;next} /Disabled/{f=0} f' | grep -q -w mail
mail_app_is_active=$?
# Temporary disable the mail app