diff options
author | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-09-28 20:27:01 +0300 |
---|---|---|
committer | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-09-28 20:27:01 +0300 |
commit | 3f795f812ef649b8c9fc011a5a25a2704dbbf4cc (patch) | |
tree | c7c5bc6fbc0268d4d8baabd833995cc27594ae82 | |
parent | 99f4285e8ebc63128c5ef313459eb4194037ec29 (diff) |
update.sh: Prevent ncp-update on older docker containers
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
-rwxr-xr-x | update.sh | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |