mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-29 20:57:22 +02:00
Fix detection of installed nc app
The script erroneously determined the contacts app was installed because it matched "contactsintegration"
This commit is contained in:
@@ -377,7 +377,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'"
|
||||||
|
|||||||
Reference in New Issue
Block a user