mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
update.sh: Prevent ncp-update on older docker containers
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
parent
99f4285e8e
commit
3f795f812e
10
update.sh
10
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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user