mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-30 02:14:34 +01:00
Update dashy-update.sh
This commit is contained in:
parent
ad8ef171a0
commit
fbebc4e8f5
@ -11,8 +11,8 @@ systemctl stop dashy
|
|||||||
sleep 1
|
sleep 1
|
||||||
echo -e "${CM}${CL} \r"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
echo -en "${GN} Backup Data... "
|
echo -en "${GN} Backup conf.yml... "
|
||||||
cp -R /dashy/public public-backup
|
cp -R /dashy/public/conf.yml conf.yml
|
||||||
sleep 1
|
sleep 1
|
||||||
echo -e "${CM}${CL} \r"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
@ -24,14 +24,14 @@ yarn &>/dev/null
|
|||||||
yarn build &>/dev/null
|
yarn build &>/dev/null
|
||||||
echo -e "${CM}${CL} \r"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
echo -en "${GN} Restoring Data... "
|
echo -en "${GN} Restoring conf.yml... "
|
||||||
cd ~
|
cd ~
|
||||||
cp -R public-backup /dashy/public
|
cp -R conf.yml /dashy/public
|
||||||
sleep 1
|
sleep 1
|
||||||
echo -e "${CM}${CL} \r"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
echo -en "${GN} Cleaning... "
|
echo -en "${GN} Cleaning... "
|
||||||
rm -rf public-backup
|
rm -rf conf.yml
|
||||||
sleep 1
|
sleep 1
|
||||||
echo -e "${CM}${CL} \r"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user