fix: installing specific version requires = in name of package

This commit is contained in:
Filip Rojek 2023-07-23 19:27:41 +02:00
parent 839146e48b
commit 4ab11cb237

View File

@ -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