This commit is contained in:
Kroese 2023-04-17 18:38:27 +02:00 committed by GitHub
parent 4a1aacc814
commit f4bd8e089b

View File

@ -80,12 +80,12 @@ if [ ! -f "${DATA}" ]; then
fi fi
AGENT_VERSION=1
AGENT="${STORAGE}/${BASE}.agent" AGENT="${STORAGE}/${BASE}.agent"
[ ! -f "$AGENT" ] && echo "1" > "$AGENT" [ -f "$AGENT" ] && AGENT_VERSION=$(cat "${AGENT}")
AGENT_VERSION=$(cat "${AGENT}")
if ((AGENT_VERSION < 3)); then if ((AGENT_VERSION < 4)); then
echo "INFO: The installed Guest Agent in DSM is an outdated version, please upgrade it." echo "INFO: The installed VirtualDSM Agent is an outdated version, please upgrade it."
fi fi
KVM_DISK_OPTS="\ KVM_DISK_OPTS="\