mirror of https://github.com/tteck/Proxmox.git
Adding the "tools" directory to the backup before updating homer (#2460)
This commit is contained in:
parent
be47eb1039
commit
e81d51399c
|
@ -62,7 +62,8 @@ msg_ok "Stopped ${APP}"
|
||||||
msg_info "Backing up config.yml"
|
msg_info "Backing up config.yml"
|
||||||
cd ~
|
cd ~
|
||||||
cp -R /opt/homer/assets/config.yml config.yml
|
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}"
|
msg_info "Updating ${APP}"
|
||||||
rm -rf /opt/homer/*
|
rm -rf /opt/homer/*
|
||||||
|
@ -73,10 +74,11 @@ msg_ok "Updated ${APP}"
|
||||||
msg_info "Restoring conf.yml"
|
msg_info "Restoring conf.yml"
|
||||||
cd ~
|
cd ~
|
||||||
cp -R config.yml /opt/homer/assets
|
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"
|
msg_info "Cleaning"
|
||||||
rm -rf config.yml /opt/homer/homer.zip
|
rm -rf config.yml tools /opt/homer/homer.zip
|
||||||
msg_ok "Cleaned"
|
msg_ok "Cleaned"
|
||||||
|
|
||||||
msg_info "Starting ${APP}"
|
msg_info "Starting ${APP}"
|
||||||
|
|
Loading…
Reference in New Issue