From 72bee52bd700983b3c10881f2fe7a261d4003d1c Mon Sep 17 00:00:00 2001 From: downtownallday Date: Thu, 18 Aug 2022 10:36:09 -0400 Subject: [PATCH] fix detection of installation status of contacts app - the grep for "contacts" should not match app "contactsintegration" --- setup/mods.available/connect-nextcloud-to-miab.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/mods.available/connect-nextcloud-to-miab.sh b/setup/mods.available/connect-nextcloud-to-miab.sh index bd366bb7..a3c73a17 100755 --- a/setup/mods.available/connect-nextcloud-to-miab.sh +++ b/setup/mods.available/connect-nextcloud-to-miab.sh @@ -386,7 +386,7 @@ install_app() { if [ ! -x /usr/bin/sudo ]; then say "WARNING: sudo is not installed: Unable to run occ to check and/or install Nextcloud app \"$app\"." - elif [ -z "$(sudo -E -u www-data php $NCDIR/occ app:list | grep $app)" ]; then + elif [ -z "$(sudo -E -u www-data php $NCDIR/occ app:list | grep -F $app:)" ]; then say_verbose "Install app '$app'" sudo -E -u www-data php $NCDIR/occ app:install $app [ $? -ne 0 ] && die "Unable to install Nextcloud app '$app'"