mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-07 16:29:18 +00:00
Compare commits
No commits in common. "1183cf60c12f0f71f44a9307f6a382b0df6add16" and "c722f2ed360219b98f652db6d0f99738ae114e8d" have entirely different histories.
1183cf60c1
...
c722f2ed36
@ -40,9 +40,9 @@ function update_script() {
|
||||
|
||||
msg_info "Updating ${APP} to v${RELEASE}"
|
||||
mv /opt/bookstack /opt/bookstack-backup
|
||||
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
|
||||
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
|
||||
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 /opt/v${RELEASE}.zip
|
||||
rm -rf ~/v${RELEASE}.zip
|
||||
msg_ok "Cleaned"
|
||||
msg_ok "Updated Successfully"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user