-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate
More file actions
executable file
·27 lines (19 loc) · 864 Bytes
/
update
File metadata and controls
executable file
·27 lines (19 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
YELLOW="\e[33m"
ENDCOLOR="\e[0m"
chmod +x ./scripts/*.sh
mkdir -p ./logs
echo "" &>> ./logs/update.log
echo "================================= $(date) =================================" &>> ./logs/update.log
echo -e "\n${YELLOW}updating${ENDCOLOR}"
./scripts/update.sh &>> ./logs/update.log
echo -e "\xE2\x9C\x94 done"
echo "" &>> ./logs/upgrade.log
echo "================================= $(date) =================================" &>> ./logs/upgrade.log
echo -e "\n${YELLOW}upgrading${ENDCOLOR}"
./scripts/upgrade.sh &>> ./logs/upgrade.log
echo -e "\xE2\x9C\x94 done"
echo "" &>> ./logs/dist-upgrade.log
echo "================================= $(date) =================================" &>> ./logs/dist-upgrade.log
echo -e "\n${YELLOW}upgrading (dist-upgrade)${ENDCOLOR}"
./scripts/dist-upgrade.sh &>> ./logs/dist-upgrade.log
echo -e "\xE2\x9C\x94 done"