mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-04-19 14:38:07 +00:00
GoMFT: Update Curl Path (#3537)
* GoMFT: Update Curl Path * Update gomft.sh
This commit is contained in:
parent
0f5c9dfe42
commit
b8c5691803
@ -47,9 +47,9 @@ function update_script() {
|
|||||||
msg_info "Updating $APP to ${RELEASE}"
|
msg_info "Updating $APP to ${RELEASE}"
|
||||||
rm -f /opt/gomft/gomft
|
rm -f /opt/gomft/gomft
|
||||||
temp_file=$(mktemp)
|
temp_file=$(mktemp)
|
||||||
curl -fsSL "https://github.com/StarFleetCPTN/GoMFT/archive/refs/tags/v.${RELEASE}.tar.gz" -o $temp_file
|
curl -fsSL "https://github.com/StarFleetCPTN/GoMFT/archive/refs/tags/v${RELEASE}.tar.gz" -o $temp_file
|
||||||
tar -xzf $temp_file
|
tar -xzf $temp_file
|
||||||
cp -rf GoMFT-v.${RELEASE}/* /opt/gomft
|
cp -rf GoMFT-${RELEASE}/* /opt/gomft
|
||||||
cd /opt/gomft
|
cd /opt/gomft
|
||||||
rm -f /opt/gomft/node_modules
|
rm -f /opt/gomft/node_modules
|
||||||
$STD npm ci
|
$STD npm ci
|
||||||
|
@ -47,9 +47,9 @@ msg_ok "Installed Node.js"
|
|||||||
msg_info "Setup ${APPLICATION} (Patience)"
|
msg_info "Setup ${APPLICATION} (Patience)"
|
||||||
temp_file=$(mktemp)
|
temp_file=$(mktemp)
|
||||||
RELEASE=$(curl -fsSL https://api.github.com/repos/StarFleetCPTN/GoMFT/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
RELEASE=$(curl -fsSL https://api.github.com/repos/StarFleetCPTN/GoMFT/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
curl -fsSL "https://github.com/StarFleetCPTN/GoMFT/archive/refs/tags/v.${RELEASE}.tar.gz" -o $temp_file
|
curl -fsSL "https://github.com/StarFleetCPTN/GoMFT/archive/refs/tags/v${RELEASE}.tar.gz" -o $temp_file
|
||||||
tar -xzf $temp_file
|
tar -xzf $temp_file
|
||||||
mv GoMFT-v.${RELEASE}/ /opt/gomft
|
mv GoMFT-${RELEASE}/ /opt/gomft
|
||||||
cd /opt/gomft
|
cd /opt/gomft
|
||||||
$STD npm ci
|
$STD npm ci
|
||||||
$STD node build.js
|
$STD node build.js
|
||||||
|
Loading…
x
Reference in New Issue
Block a user