Update 02-init_steps.sh

This commit is contained in:
Alexandre
2023-03-24 11:25:41 +01:00
committed by GitHub
parent 6578b3956c
commit bda2538a4e

View File

@@ -40,6 +40,7 @@ else
bashio::log.warning "--------------------------------------------------------------------------------------------------------------" bashio::log.warning "--------------------------------------------------------------------------------------------------------------"
bashio::log.warning "Nextcloud not installed, please wait for addon startup, login Webui, install Nextcloud, then restart the addon" bashio::log.warning "Nextcloud not installed, please wait for addon startup, login Webui, install Nextcloud, then restart the addon"
bashio::log.warning "--------------------------------------------------------------------------------------------------------------" bashio::log.warning "--------------------------------------------------------------------------------------------------------------"
bashio::log.warning " "
exit 0 exit 0
fi fi
@@ -65,16 +66,15 @@ fi
###################### ######################
# Check if issue in installation # Check if issue in installation
echo "... checking installation" bashio::log.info "Checking installation"
(if [[ "$(occ -V 2>&1)" == *"Composer autoloader not found"* ]]; then ( if [[ "$(occ -V 2>&1)" == *"Composer autoloader not found"* ]]; then
touch /reinstall touch /reinstall
fi) &> /dev/null fi ) &> /dev/null
# Reinstall if needed # Reinstall if needed
if [ -f /reinstall ]; then if [ -f /reinstall ]; then
rm /reinstall rm /reinstall
bashio::log.error "... issue with installation detected, reinstallation will proceed" bashio::log.error "... issue with installation detected, reinstallation will proceed"
bashio::log.error "-----------------------------------------------------------------"
# Redownload nextcloud if wrong version # Redownload nextcloud if wrong version
if [[ ! "$CURRENTVERSION" == "$(cat /nextcloudversion)" ]]; then if [[ ! "$CURRENTVERSION" == "$(cat /nextcloudversion)" ]]; then
@@ -89,5 +89,6 @@ if [ -f /reinstall ]; then
bashio::log.warning "... reinstall ongoing, please wait" bashio::log.warning "... reinstall ongoing, please wait"
rm /data/config/www/nextcloud/index.php && \ rm /data/config/www/nextcloud/index.php && \
/./etc/s6-overlay/s6-rc.d/init-nextcloud-config/run && \ /./etc/s6-overlay/s6-rc.d/init-nextcloud-config/run && \
bashio::log.fatal "... done"
fi fi
bashio::log.info "... done"