mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-11 01:27:17 +00:00
fix detection of installation status of contacts app - the grep for "contacts" should not match app "contactsintegration"
This commit is contained in:
parent
cac187756d
commit
72bee52bd7
@ -386,7 +386,7 @@ install_app() {
|
|||||||
if [ ! -x /usr/bin/sudo ]; then
|
if [ ! -x /usr/bin/sudo ]; then
|
||||||
say "WARNING: sudo is not installed: Unable to run occ to check and/or install Nextcloud app \"$app\"."
|
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'"
|
say_verbose "Install app '$app'"
|
||||||
sudo -E -u www-data php $NCDIR/occ app:install $app
|
sudo -E -u www-data php $NCDIR/occ app:install $app
|
||||||
[ $? -ne 0 ] && die "Unable to install Nextcloud app '$app'"
|
[ $? -ne 0 ] && die "Unable to install Nextcloud app '$app'"
|
||||||
|
Loading…
Reference in New Issue
Block a user