From 51ec219eb74fa4a8ca61b7baabb46912f5f92da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Sun, 23 Mar 2025 22:23:20 +0100 Subject: [PATCH] Check if build-essential is present, if not install it (#3358) --- ct/gomft.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ct/gomft.sh b/ct/gomft.sh index 02bd2f520..a274d2977 100644 --- a/ct/gomft.sh +++ b/ct/gomft.sh @@ -29,6 +29,10 @@ function update_script() { exit fi RELEASE=$(curl -s https://api.github.com/repos/StarFleetCPTN/GoMFT/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') + if ! dpkg -l | grep -q "^ii.*build-essential"; then + $STD apt-get install -y build-essential + fi + if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then msg_info "Stopping $APP" systemctl stop gomft