mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-25 05:56:28 +01:00
Update 02-init_steps.sh
This commit is contained in:
@@ -51,25 +51,25 @@ if [[ $($LAUNCHER -V 2>&1) == *"not installed"* ]] || [ ! -f /data/config/www/ne
|
||||
bashio::log.green " "
|
||||
touch /notinstalled
|
||||
exit 0
|
||||
elif [[ $($LAUNCHER -V 2>&1) == *"Nextcloud"* ]]; then
|
||||
# Log
|
||||
bashio::log.green "--------------------------------------"
|
||||
bashio::log.green "Nextcloud $CURRENTVERSION is installed"
|
||||
bashio::log.green "--------------------------------------"
|
||||
# Is there an error
|
||||
elif [[ $($LAUNCHER -V 2>&1) == *"Composer autoloader not found"* ]]; then
|
||||
bashio::log.red "--------------------------------------------------------"
|
||||
bashio::log.red "Issue in installation detected, Nextcloud will reinstall"
|
||||
bashio::log.red "--------------------------------------------------------"
|
||||
touch /reinstall
|
||||
#else
|
||||
# bashio::log.red "------------------------------------------------------------------"
|
||||
# bashio::log.red "Unknown error detected, please create issue in github or reinstall"
|
||||
# bashio::log.red "------------------------------------------------------------------"
|
||||
# bashio::log.red "Error message:"
|
||||
# bashio::log.red "$($LAUNCHER -V 2>&1)"
|
||||
# bashio::log.red "------------------------------------------------------------------"
|
||||
# bashio::exit.nok
|
||||
elif [[ $($LAUNCHER -V 2>&1) == *"Nextcloud"* ]] || grep -q "/mnt/" /data/config/www/nextcloud/config/config.php &>/dev/null; then
|
||||
# Log
|
||||
bashio::log.green "--------------------------------------"
|
||||
bashio::log.green "Nextcloud $CURRENTVERSION is installed"
|
||||
bashio::log.green "--------------------------------------"
|
||||
elif ! grep -q "/mnt/" /data/config/www/nextcloud/config/config.php; then
|
||||
bashio::log.red "------------------------------------------------------------------"
|
||||
bashio::log.red "Unknown error detected, please create issue in github or reinstall"
|
||||
bashio::log.red "------------------------------------------------------------------"
|
||||
bashio::log.red "Error message:"
|
||||
bashio::log.red "$($LAUNCHER -V 2>&1)"
|
||||
bashio::log.red "------------------------------------------------------------------"
|
||||
bashio::exit.nok
|
||||
fi
|
||||
|
||||
#########################
|
||||
|
||||
Reference in New Issue
Block a user