Improve occ installation detection

This commit is contained in:
Alexandre
2023-03-22 14:27:34 +01:00
parent f1bd70087a
commit 9fa4e0e655
4 changed files with 15 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ if ! bashio::fs.file_exists '/data/config/www/nextcloud/occ'; then
fi || bashio::log.info "occ not found"
# Make sure there is an Nextcloud installation
if [[ $($LAUNCHER -V) == *"not installed"* ]]; then
if [[ $($LAUNCHER -V 2>&1) == *"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