1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-04-19 14:38:07 +00:00

Check if build-essential is present, if not install it (#3358)

This commit is contained in:
Slaviša Arežina 2025-03-23 22:23:20 +01:00 committed by GitHub
parent a0f393cb56
commit 51ec219eb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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