From 4ab11cb23772d121ac17045b48b700468883b82b Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Sun, 23 Jul 2023 19:27:41 +0200 Subject: [PATCH] fix: installing specific version requires = in name of package --- gitlab-upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab-upgrade b/gitlab-upgrade index 505eeaf..76b3bf7 100755 --- a/gitlab-upgrade +++ b/gitlab-upgrade @@ -19,7 +19,7 @@ if [[ "$CURRENT_VERSION" == "$UPDATE_TO" ]]; then echo "$DATE | $CURRENT_VERSION | no new minor version is available" >> /var/log/gitlab-auto-update.log else echo "$DATE | $CURRENT_VERSION | updating to $UPDATE_TO" >> /var/log/gitlab-auto-update.log - sudo apt install -y "$PKG_NAME-$UPDATE_TO" 2>"$ERROR_LOG" + sudo apt install -y "$PKG_NAME=$UPDATE_TO" 2>"$ERROR_LOG" # Check if there were any errors if [ -s "$ERROR_LOG" ]; then