mirror of https://github.com/tteck/Proxmox.git
Update wastebin.sh
This commit is contained in:
parent
2d14a5a256
commit
a5ca4aa141
|
@ -67,14 +67,14 @@ systemctl stop wastebin
|
||||||
msg_ok "Wastebin Stopped"
|
msg_ok "Wastebin Stopped"
|
||||||
|
|
||||||
msg_info "Updating Wastebin"
|
msg_info "Updating Wastebin"
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') &>/dev/null
|
RELEASE=$(curl -s https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
cd /opt
|
cd /opt
|
||||||
if [ -d wastebin_bak ]; then
|
if [ -d wastebin_bak ]; then
|
||||||
rm -rf wastebin_bak
|
rm -rf wastebin_bak
|
||||||
fi
|
fi
|
||||||
mv wastebin wastebin_bak
|
mv wastebin wastebin_bak
|
||||||
wget -q "https://github.com/matze/wastebin/archive/refs/tags/${RELEASE}.zip"
|
wget -q "https://github.com/matze/wastebin/archive/refs/tags/${RELEASE}.zip"
|
||||||
unzip -q ${RELEASE}.zip &>/dev/null
|
unzip -q ${RELEASE}.zip
|
||||||
mv wastebin-${RELEASE} /opt/wastebin
|
mv wastebin-${RELEASE} /opt/wastebin
|
||||||
cd /opt/wastebin
|
cd /opt/wastebin
|
||||||
cargo update -q
|
cargo update -q
|
||||||
|
@ -104,4 +104,4 @@ msg_ok "Set Container to Normal Resources"
|
||||||
|
|
||||||
msg_ok "Completed Successfully!\n"
|
msg_ok "Completed Successfully!\n"
|
||||||
echo -e "${APP} Setup should be reachable by going to the following URL.
|
echo -e "${APP} Setup should be reachable by going to the following URL.
|
||||||
${BL}http://${IP}:8088${CL} \n"
|
${BL}http://${IP}:8088${CL} \n"
|
||||||
|
|
Loading…
Reference in New Issue