From e81d51399c71c13f4bdcd3329d57fc54d7ec6192 Mon Sep 17 00:00:00 2001 From: Allard Katstra Date: Fri, 9 Feb 2024 17:06:22 +0100 Subject: [PATCH] Adding the "tools" directory to the backup before updating homer (#2460) --- ct/homer.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ct/homer.sh b/ct/homer.sh index f6b04d4d..7d02e053 100644 --- a/ct/homer.sh +++ b/ct/homer.sh @@ -62,7 +62,8 @@ msg_ok "Stopped ${APP}" msg_info "Backing up config.yml" cd ~ cp -R /opt/homer/assets/config.yml config.yml -msg_ok "Backed up config.yml" +cp -R /opt/homer/assets/tools tools +msg_ok "Backed up config.yml and tools directory" msg_info "Updating ${APP}" rm -rf /opt/homer/* @@ -73,10 +74,11 @@ msg_ok "Updated ${APP}" msg_info "Restoring conf.yml" cd ~ cp -R config.yml /opt/homer/assets -msg_ok "Restored conf.yml" +cp -R tools /opt/homer/assets +msg_ok "Restored config.yml and tools directory" msg_info "Cleaning" -rm -rf config.yml /opt/homer/homer.zip +rm -rf config.yml tools /opt/homer/homer.zip msg_ok "Cleaned" msg_info "Starting ${APP}"