Skip to content

Commit 596699d

Browse files
authored
booklore: remove folder before update (#7351)
1 parent b2275b4 commit 596699d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ct/booklore.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ function update_script() {
3333
systemctl stop booklore
3434
msg_ok "Stopped $APP"
3535

36+
msg_info "backup old install"
37+
mv /opt/booklore /opt/booklore_bak
38+
msg_ok "backup done"
39+
3640
fetch_and_deploy_gh_release "booklore" "booklore-app/BookLore"
3741

3842
msg_info "Building Frontend"
@@ -58,6 +62,7 @@ function update_script() {
5862
msg_info "Starting $APP"
5963
systemctl start booklore
6064
systemctl reload nginx
65+
rm -rf /opt/booklore_bak
6166
msg_ok "Started $APP"
6267
msg_ok "Updated Successfully"
6368
fi

0 commit comments

Comments
 (0)