Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthecalcaholic <6317548+theCalcaholic@users.noreply.github.com>2022-09-28 20:27:01 +0300
committerthecalcaholic <6317548+theCalcaholic@users.noreply.github.com>2022-09-28 20:27:01 +0300
commit3f795f812ef649b8c9fc011a5a25a2704dbbf4cc (patch)
treec7c5bc6fbc0268d4d8baabd833995cc27594ae82
parent99f4285e8ebc63128c5ef313459eb4194037ec29 (diff)
update.sh: Prevent ncp-update on older docker containers
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
-rwxr-xr-xupdate.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index bbf2aa21..970d3a39 100755
--- a/update.sh
+++ b/update.sh
@@ -12,6 +12,16 @@ source /usr/local/etc/library.sh
set -e$DBG
+
+if is_docker
+then
+ echo "WARNING: Docker images should be updated by replacing the container from the latest docker image" \
+ "(refer to the documentation for instructions: https://docs.nextcloudpi.com)." \
+ "If you are sure that you know what you are doing, you can still execute the update script by running it like this:"
+ echo "> ALLOW_UPDATE_SCRIPT=1 ncp-update"
+ [[ "$ALLOW_UPDATE_SCRIPT" == "1" ]] || exit 1
+fi
+
CONFDIR=/usr/local/etc/ncp-config.d/
UPDATESDIR=updates