Skip to content

Commit

Permalink
Fix linkwarden update (#1565)
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerga authored Jan 18, 2025
1 parent e683fd9 commit d1f5556
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ct/linkwarden.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"

0 comments on commit d1f5556

Please sign in to comment.