mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-03 22:34:11 +02:00
Update 02-init_steps.sh
This commit is contained in:
@@ -37,7 +37,7 @@ fi
|
|||||||
LAUNCHER="sudo -u abc php /app/www/public/occ"
|
LAUNCHER="sudo -u abc php /app/www/public/occ"
|
||||||
|
|
||||||
# Check current version
|
# Check current version
|
||||||
if [ -f /data/config/www/nextcloud/version.php ]; then
|
if [ -f /app/www/public/version.php ]; then
|
||||||
CURRENTVERSION="$(sed -n "s|.*\OC_VersionString = '*\(.*[^ ]\) *';.*|\1|p" /data/config/www/nextcloud/version.php)"
|
CURRENTVERSION="$(sed -n "s|.*\OC_VersionString = '*\(.*[^ ]\) *';.*|\1|p" /data/config/www/nextcloud/version.php)"
|
||||||
else
|
else
|
||||||
CURRENTVERSION="Not found"
|
CURRENTVERSION="Not found"
|
||||||
@@ -46,7 +46,7 @@ fi
|
|||||||
echo " "
|
echo " "
|
||||||
|
|
||||||
# If not installed, or files not available
|
# If not installed, or files not available
|
||||||
if [[ $($LAUNCHER -V 2>&1) == *"not installed"* ]] || [ ! -f /data/config/www/nextcloud/version.php ]; then
|
if [[ $($LAUNCHER -V 2>&1) == *"not installed"* ]] || [ ! -f /app/www/public/version.php ]; then
|
||||||
bashio::log.green "--------------------------------------------------------------------------------------------------------------"
|
bashio::log.green "--------------------------------------------------------------------------------------------------------------"
|
||||||
bashio::log.yellow "Nextcloud not installed, please wait for addon startup, login Webui, install Nextcloud, then restart the addon"
|
bashio::log.yellow "Nextcloud not installed, please wait for addon startup, login Webui, install Nextcloud, then restart the addon"
|
||||||
bashio::log.green "--------------------------------------------------------------------------------------------------------------"
|
bashio::log.green "--------------------------------------------------------------------------------------------------------------"
|
||||||
|
|||||||
Reference in New Issue
Block a user