From 4bb27b0620374f9fca8abcb253632b1baefe73bd Mon Sep 17 00:00:00 2001 From: MahrWe <28512631+MahrWe@users.noreply.github.com> Date: Wed, 8 Jan 2025 14:46:14 +0100 Subject: [PATCH] migration of .env to hoarder.env in hoarder.sh --- ct/hoarder.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ct/hoarder.sh b/ct/hoarder.sh index 197b9cc9..e4f25b1d 100644 --- a/ct/hoarder.sh +++ b/ct/hoarder.sh @@ -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