From ca03967f6af573a43917f3fc66172c076f22bfa1 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 21 Jul 2025 14:53:07 +0200 Subject: [PATCH] Update salt.sh --- ct/salt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/salt.sh b/ct/salt.sh index 5efed33c..c8a6cec7 100644 --- a/ct/salt.sh +++ b/ct/salt.sh @@ -30,12 +30,12 @@ function update_script() { fi RELEASE=$(curl -fsSL https://api.github.com/repos/saltstack/salt/releases/latest | jq -r .tag_name | sed 's/^v//') - if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then + if [[ ! -f /~.salt ]] || [[ "${RELEASE}" != "$(cat /~.salt)" ]]; then msg_info "Updating $APP to ${RELEASE}" sed -i "s/^\(Pin: version \).*/\1${RELEASE}/" /etc/apt/preferences.d/salt-pin-1001 $STD apt-get update $STD apt-get upgrade -y - echo "${RELEASE}" >/opt/${APP}_version.txt + echo "${RELEASE}" >/~.salt msg_ok "Updated ${APP} to ${RELEASE}" else msg_ok "${APP} is already up to date (${RELEASE})"