mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-07 16:29:18 +00:00
Compare commits
2 Commits
c722f2ed36
...
1183cf60c1
Author | SHA1 | Date | |
---|---|---|---|
|
1183cf60c1 | ||
|
df2fd548a2 |
@ -40,9 +40,9 @@ function update_script() {
|
||||
|
||||
msg_info "Updating ${APP} to v${RELEASE}"
|
||||
mv /opt/bookstack /opt/bookstack-backup
|
||||
wget -q --directory-prefix=/root/ "https://github.com/BookStackApp/BookStack/archive/refs/tags/v${RELEASE}.zip"
|
||||
unzip -q ~/v${RELEASE}.zip
|
||||
mv ~/BookStack-${RELEASE} /opt/bookstack
|
||||
wget -q --directory-prefix=/opt "https://github.com/BookStackApp/BookStack/archive/refs/tags/v${RELEASE}.zip"
|
||||
unzip -q opt/v${RELEASE}.zip
|
||||
mv opt/BookStack-${RELEASE} /opt/bookstack
|
||||
cp /opt/bookstack-backup/.env /opt/bookstack/.env
|
||||
cp -r /opt/bookstack-backup/public/uploads/ /opt/bookstack/public/uploads
|
||||
cp -r /opt/bookstack-backup/storage/uploads/ /opt/bookstack/storage/uploads
|
||||
@ -64,7 +64,7 @@ function update_script() {
|
||||
|
||||
msg_info "Cleaning Up"
|
||||
rm -rf /opt/bookstack-backup
|
||||
rm -rf ~/v${RELEASE}.zip
|
||||
rm -rf /opt/v${RELEASE}.zip
|
||||
msg_ok "Cleaned"
|
||||
msg_ok "Updated Successfully"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user