mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-26 16:00:31 +02:00
Check installation
This commit is contained in:
@@ -6,7 +6,7 @@ LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" || bashio::log.info "/
|
||||
fi || bashio::log.info "occ not found"
|
||||
|
||||
# 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."
|
||||
exit 0
|
||||
fi
|
||||
@@ -20,7 +20,7 @@ fi
|
||||
#################################################################################
|
||||
|
||||
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"
|
||||
break 2
|
||||
fi
|
||||
@@ -67,8 +67,8 @@ fi
|
||||
if $LAUNCHER fulltextsearch:index &>/dev/null; then
|
||||
bashio::log.info "Full Text Search was successfully installed using elasticsearch server $HOST!"
|
||||
|
||||
|
||||
else
|
||||
|
||||
bashio::log.warning "Elasticsearch can't connect. Please manually define its server in the options"
|
||||
fi
|
||||
else
|
||||
|
||||
@@ -6,7 +6,7 @@ LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" || bashio::log.info "/
|
||||
fi || bashio::log.info "occ not found"
|
||||
|
||||
# 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."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@@ -6,7 +6,7 @@ LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" || bashio::log.info "/
|
||||
fi || bashio::log.info "occ not found"
|
||||
|
||||
# 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."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user