From 50519ea3d661b168ce07e0cc46266ecf1e465af5 Mon Sep 17 00:00:00 2001 From: Raine Date: Mon, 6 Nov 2023 18:12:41 +0100 Subject: [PATCH] feat: skel version check --- tools/server-update.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/server-update.sh b/tools/server-update.sh index 6e2e050..ab4aa2f 100755 --- a/tools/server-update.sh +++ b/tools/server-update.sh @@ -12,6 +12,13 @@ if cd /etc/ixvd/secrets; then fi git pull + +if ! [ "$(cat ./skel/etc/ixvd/version)" = "$(cat /etc/ixvd/version)" ]; then + echo "WARNING: IXVD SKELETON VERSION CHANGED!" + echo "WARNING: Manual intervention is required." + exit 1 +fi + ./tools/server-setup.sh ./tools/server-docker-compose.sh build --pull ./tools/server-docker-compose.sh pull \ No newline at end of file