Skip to content

Commit d1f5556

Browse files
authored
Fix linkwarden update (#1565)
1 parent e683fd9 commit d1f5556

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ct/linkwarden.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function update_script() {
4040
msg_info "Updating ${APP} to ${RELEASE}"
4141
cd /opt
4242
mv /opt/linkwarden/.env /opt/.env
43+
rm -rf /opt/linkwarden
4344
RELEASE=$(curl -s https://api.github.com/repos/linkwarden/linkwarden/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
4445
wget -q "https://github.com/linkwarden/linkwarden/archive/refs/tags/${RELEASE}.zip"
4546
unzip -q ${RELEASE}.zip
@@ -59,7 +60,6 @@ function update_script() {
5960
msg_ok "Started ${APP}"
6061
msg_info "Cleaning up"
6162
rm -rf /opt/${RELEASE}.zip
62-
rm -rf /opt/linkwarden_bak
6363
msg_ok "Cleaned"
6464
msg_ok "Updated Successfully"
6565
else
@@ -75,4 +75,4 @@ description
7575
msg_ok "Completed Successfully!\n"
7676
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
7777
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
78-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"
78+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"

0 commit comments

Comments
 (0)