|
|
|
@ -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" |
|
|
|
|
${BL}http://${IP}:8088${CL} \n" |
|
|
|
|