Compare commits

..

2 Commits

Author SHA1 Message Date
Michel Roegl-Brunner
1183cf60c1 Merge branch 'bookstack' of https://github.com/michelroegl-brunner/ProxmoxVE into bookstack 2024-12-17 09:03:33 +01:00
Michel Roegl-Brunner
df2fd548a2 Changes 2024-12-17 09:02:50 +01:00

View File

@ -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