diff --git a/ct/linkwarden.sh b/ct/linkwarden.sh index 5c0435e0..311f28e4 100644 --- a/ct/linkwarden.sh +++ b/ct/linkwarden.sh @@ -40,6 +40,7 @@ function update_script() { msg_info "Updating ${APP} to ${RELEASE}" cd /opt mv /opt/linkwarden/.env /opt/.env + rm -rf /opt/linkwarden RELEASE=$(curl -s https://api.github.com/repos/linkwarden/linkwarden/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') wget -q "https://github.com/linkwarden/linkwarden/archive/refs/tags/${RELEASE}.zip" unzip -q ${RELEASE}.zip @@ -59,7 +60,6 @@ function update_script() { msg_ok "Started ${APP}" msg_info "Cleaning up" rm -rf /opt/${RELEASE}.zip - rm -rf /opt/linkwarden_bak msg_ok "Cleaned" msg_ok "Updated Successfully" else @@ -75,4 +75,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"