mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-07 16:29:18 +00:00
Changes
This commit is contained in:
parent
93a80a04b1
commit
df2fd548a2
@ -39,9 +39,9 @@ function update_script() {
|
||||
msg_ok "Services Stopped"
|
||||
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
|
||||
@ -61,7 +61,7 @@ function update_script() {
|
||||
msg_ok "Started Apache2"
|
||||
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