mirror of https://github.com/tteck/Proxmox.git
Update dashy-update.sh
This commit is contained in:
parent
f79471d341
commit
ad8ef171a0
|
@ -8,30 +8,36 @@ CL=`echo "\033[m"`
|
||||||
clear
|
clear
|
||||||
echo -en "${GN} Stopping Dashy... "
|
echo -en "${GN} Stopping Dashy... "
|
||||||
systemctl stop dashy
|
systemctl stop dashy
|
||||||
|
sleep 1
|
||||||
echo -e "${CM}${CL} \r"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
echo -en "${GN} Backup Data... "
|
echo -en "${GN} Backup Data... "
|
||||||
cp -R /dashy/public public-backup
|
cp -R /dashy/public public-backup
|
||||||
|
sleep 1
|
||||||
echo -e "${CM}${CL} \r"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
echo -en "${GN} Updating Dashy... "
|
echo -en "${GN} Updating Dashy... "
|
||||||
cd /dashy
|
cd /dashy
|
||||||
git merge
|
git merge &>/dev/null
|
||||||
git pull origin master
|
git pull origin master &>/dev/null
|
||||||
yarn
|
yarn &>/dev/null
|
||||||
yarn build
|
yarn build &>/dev/null
|
||||||
echo -e "${CM}${CL} \r"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
echo -en "${GN} Restoring Data... "
|
echo -en "${GN} Restoring Data... "
|
||||||
cp -R public-backup/* /dashy/public
|
cd ~
|
||||||
|
cp -R public-backup /dashy/public
|
||||||
|
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 public-backup
|
||||||
|
sleep 1
|
||||||
echo -e "${CM}${CL} \r"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
echo -en "${GN} Starting Dashy... "
|
echo -en "${GN} Starting Dashy... "
|
||||||
systemctl start dashy
|
systemctl start dashy
|
||||||
|
sleep 1
|
||||||
echo -e "${CM}${CL} \r"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
echo -e "${GN} Finished ${CL}\n"
|
echo -e "${GN} Finished ${CL}\n"
|
||||||
|
|
Loading…
Reference in New Issue