Skip to content

Commit 51ec219

Browse files
authored
Check if build-essential is present, if not install it (#3358)
1 parent a0f393c commit 51ec219

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ct/gomft.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ function update_script() {
2929
exit
3030
fi
3131
RELEASE=$(curl -s https://api.github.com/repos/StarFleetCPTN/GoMFT/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
32+
if ! dpkg -l | grep -q "^ii.*build-essential"; then
33+
$STD apt-get install -y build-essential
34+
fi
35+
3236
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
3337
msg_info "Stopping $APP"
3438
systemctl stop gomft

0 commit comments

Comments
 (0)