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:
parent
a0f393cb56
commit
51ec219eb7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user