1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-02-01 20:51:50 +00:00

Fix Wallos Update (#339)

* (Maintenance) Optimize DB Check Wallos 

Check if wallos.db exists

* Switch mkdir

* switch to logos

* Update wallos.sh
This commit is contained in:
CanbiZ 2024-11-19 07:24:00 +01:00 committed by GitHub
parent 82d287959e
commit 3b29f08590
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,14 +63,15 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v
msg_info "Updating ${APP} to ${RELEASE}"
cd /opt
wget -q "https://github.com/ellite/Wallos/archive/refs/tags/v${RELEASE}.zip"
mkdir -p /opt/logos
mv /opt/wallos/db/wallos.db /opt/wallos.db
mv /opt/wallos/images/uploads /opt/images/uploads
mv /opt/wallos/images/uploads/logos /opt/logos/
unzip -q v${RELEASE}.zip
rm -rf /opt/wallos
mv Wallos-${RELEASE} /opt/wallos
rm -rf /opt/wallos/db/wallos.empty.db
mv /opt/wallos.db /opt/wallos/db/wallos.db
mv /opt/images/uploads /opt/wallos/images/uploads
mv /opt/logos/* /opt/wallos/images/uploads/logos
chown -R www-data:www-data /opt/wallos
chmod -R 755 /opt/wallos
mkdir -p /var/log/cron