File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
7575msg_ok " Completed Successfully!\n"
7676echo -e " ${CREATING}${GN}${APP} setup has been successfully initialized!${CL} "
7777echo -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} "
You can’t perform that action at this time.
0 commit comments