migration of .env to hoarder.env in hoarder.sh

This commit is contained in:
MahrWe 2025-01-08 14:46:14 +01:00 committed by GitHub
parent 0ad212400c
commit 4bb27b0620
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,6 +40,10 @@ function update_script() {
msg_ok "Stopped Services"
msg_info "Updating ${APP} to v${RELEASE}"
cd /opt
if [[ -f /opt/hoarder/.env ]] && [[ ! -f /etc/hoarder/hoarder.env ]]; then
mkdir -p /etc/hoarder
mv /opt/hoarder/.env /etv/hoarder/hoarder.env
fi
rm -rf /opt/hoarder
wget -q "https://github.com/hoarder-app/hoarder/archive/refs/tags/v${RELEASE}.zip"
unzip -q v${RELEASE}.zip