mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-05 00:27:25 +00: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:
parent
70475cc294
commit
9b0da60c24
@ -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'"
|
||||||
|
Loading…
Reference in New Issue
Block a user