diff --git a/ct/wastebin.sh b/ct/wastebin.sh index 85ef4dc1..be4b5aef 100644 --- a/ct/wastebin.sh +++ b/ct/wastebin.sh @@ -67,14 +67,14 @@ systemctl stop wastebin msg_ok "Wastebin Stopped" 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 if [ -d wastebin_bak ]; then rm -rf wastebin_bak fi mv wastebin wastebin_bak 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 cd /opt/wastebin cargo update -q @@ -104,4 +104,4 @@ msg_ok "Set Container to Normal Resources" msg_ok "Completed Successfully!\n" echo -e "${APP} Setup should be reachable by going to the following URL. - ${BL}http://${IP}:8088${CL} \n" \ No newline at end of file + ${BL}http://${IP}:8088${CL} \n"