From 524fb4933e007f87bf321aed555ad176bbb2acb5 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 29 Mar 2023 18:10:14 +0200 Subject: [PATCH] Update 02-init_steps.sh --- .../rootfs/etc/cont-init.d/02-init_steps.sh | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh b/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh index 025b42e88..98171148f 100755 --- a/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh +++ b/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh @@ -76,37 +76,6 @@ fi echo " " -######################### -# INFORM IF NEW VERSION # -######################### - -# Check container version -CONTAINERVERSION="$(cat /nextcloudversion)" - -# Inform if new version available -function version { echo "$@" | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }'; } -# Inform if new version available -function nextcloud_download { - mkdir -p /app - if [ -f /app/nextcloud.tar.bz2 ]; then rm /app/nextcloud.tar.bz2; fi - curl -o /app/nextcloud.tar.bz2 -L "https://download.nextcloud.com/server/releases/$1.tar.bz2" - } - -# Updater code -if bashio::config.true 'auto_updater'; then - bashio::log.green "Auto_updater set, checking for updates" - while [[ $(occ update:check 2>&1) == *"update available"* ]]; do - bashio::log.yellow " " - bashio::log.yellow "... new version available, updating. Please do not turn off your addon!" - updater.phar --no-interaction - occ upgrade - done -elif [ "$(version "$CONTAINERVERSION")" -gt "$(version "$CURRENTVERSION")" ]; then - bashio::log.yellow " " - bashio::log.yellow "New version available : $CONTAINERVERSION" - bashio::log.yellow "...auto_updater not set in addon options, please update from nextcloud settings" -fi - ###################### # REINSTALL IF ISSUE # ######################