From 60951ff58f1c05a6d31cd6f42837c5297f42cdcb Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 12 Jun 2024 07:34:42 -0400 Subject: [PATCH] Update homer.sh fixes https://github.com/tteck/Proxmox/issues/3175 --- ct/homer.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ct/homer.sh b/ct/homer.sh index 7d02e053..bfec3090 100644 --- a/ct/homer.sh +++ b/ct/homer.sh @@ -59,11 +59,11 @@ msg_info "Stopping ${APP}" systemctl stop homer msg_ok "Stopped ${APP}" -msg_info "Backing up config.yml" +msg_info "Backing up assets directory" cd ~ -cp -R /opt/homer/assets/config.yml config.yml -cp -R /opt/homer/assets/tools tools -msg_ok "Backed up config.yml and tools directory" +mkdir -p assets-backup +cp -R /opt/homer/assets/. assets-backup +msg_ok "Backed up assets directory" msg_info "Updating ${APP}" rm -rf /opt/homer/* @@ -71,14 +71,14 @@ cd /opt/homer wget -q https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip unzip homer.zip &>/dev/null msg_ok "Updated ${APP}" -msg_info "Restoring conf.yml" + +msg_info "Restoring assets directory" cd ~ -cp -R config.yml /opt/homer/assets -cp -R tools /opt/homer/assets -msg_ok "Restored config.yml and tools directory" +cp -Rf assets-backup/. /opt/homer/assets/ +msg_ok "Restored assets directory" msg_info "Cleaning" -rm -rf config.yml tools /opt/homer/homer.zip +rm -rf assets-backup /opt/homer/homer.zip msg_ok "Cleaned" msg_info "Starting ${APP}"