Check installation

This commit is contained in:
Alexandre
2021-11-09 12:24:37 +01:00
parent d8d492c16d
commit 95b5e06434
3 changed files with 34 additions and 34 deletions

View File

@@ -6,7 +6,7 @@ LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" || bashio::log.info "/
fi || bashio::log.info "occ not found" fi || bashio::log.info "occ not found"
# Make sure there is an Nextcloud installation # Make sure there is an Nextcloud installation
if ! [ "$($LAUNCHER -V)" ]; then if [[ $($LAUNCHER -V) == *"not installed"* ]]; then
bashio::log.warning "It seems there is no Nextcloud server installed. Please restart the addon after initialization of the user." bashio::log.warning "It seems there is no Nextcloud server installed. Please restart the addon after initialization of the user."
exit 0 exit 0
fi fi
@@ -20,7 +20,7 @@ fi
################################################################################# #################################################################################
if bashio::config.true 'Full_Text_Search'; then if bashio::config.true 'Full_Text_Search'; then
if [ $LAUNCHER fulltextsearch:index &>/dev/null ] ; then if [ $LAUNCHER fulltextsearch:index ] &>/dev/null; then
echo "Full Text Search is already working" echo "Full Text Search is already working"
break 2 break 2
fi fi
@@ -67,8 +67,8 @@ fi
if $LAUNCHER fulltextsearch:index &>/dev/null; then if $LAUNCHER fulltextsearch:index &>/dev/null; then
bashio::log.info "Full Text Search was successfully installed using elasticsearch server $HOST!" bashio::log.info "Full Text Search was successfully installed using elasticsearch server $HOST!"
else else
bashio::log.warning "Elasticsearch can't connect. Please manually define its server in the options" bashio::log.warning "Elasticsearch can't connect. Please manually define its server in the options"
fi fi
else else

View File

@@ -6,7 +6,7 @@ LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" || bashio::log.info "/
fi || bashio::log.info "occ not found" fi || bashio::log.info "occ not found"
# Make sure there is an Nextcloud installation # Make sure there is an Nextcloud installation
if ! [ "$($LAUNCHER -V)" ]; then if [[ $($LAUNCHER -V) == *"not installed"* ]]; then
bashio::log.warning "It seems there is no Nextcloud server installed. Please restart the addon after initialization of the user." bashio::log.warning "It seems there is no Nextcloud server installed. Please restart the addon after initialization of the user."
exit 0 exit 0
fi fi

View File

@@ -6,7 +6,7 @@ LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" || bashio::log.info "/
fi || bashio::log.info "occ not found" fi || bashio::log.info "occ not found"
# Make sure there is an Nextcloud installation # Make sure there is an Nextcloud installation
if ! [ "$($LAUNCHER -V)" ]; then if [[ $($LAUNCHER -V) == *"not installed"* ]]; then
bashio::log.warning "It seems there is no Nextcloud server installed. Please restart the addon after initialization of the user." bashio::log.warning "It seems there is no Nextcloud server installed. Please restart the addon after initialization of the user."
exit 0 exit 0
fi fi