-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·99 lines (70 loc) · 3.95 KB
/
install
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
GREEN="\e[32m"
YELLOW="\e[33m"
ENDCOLOR="\e[0m"
chmod +x ./scripts/*.sh update
mkdir -p ./logs
./update
echo "" &>> ./logs/install-git.log
echo "================================= $(date) =================================" &>> ./logs/install-git.log
echo -e "\n${YELLOW}installing GIT${ENDCOLOR}"
./scripts/install-git.sh &>> ./logs/install-git.log
echo -e "\xE2\x9C\x94 done"
echo "" &>> ./logs/install-nvm.log
echo "================================= $(date) =================================" &>> ./logs/install-nvm.log
echo -e "\n${YELLOW}installing nvm (node/npm/yarn)${ENDCOLOR}"
./scripts/install-nvm.sh &>> ./logs/install-nvm.log
echo -e "\xE2\x9C\x94 done"
echo "" &>> ./logs/install-php-repo.log
echo "================================= $(date) =================================" &>> ./logs/install-php-repo.log
echo -e "\n${YELLOW}installing PHP repository${ENDCOLOR}"
./scripts/install-php-repo.sh &>> ./logs/install-php-repo.log
echo -e "\xE2\x9C\x94 done"
# echo "" &>> ./logs/install-php8.4.log
# echo "================================= $(date) =================================" &>> ./logs/install-php8.4.log
# echo -e "\n${YELLOW}installing PHP 8.4 + extensions${ENDCOLOR}"
# ./scripts/install-php8.4.sh &>> ./logs/install-php8.4.log
# echo -e "\xE2\x9C\x94 done"
echo "" &>> ./logs/install-php8.3.log
echo "================================= $(date) =================================" &>> ./logs/install-php8.3.log
echo -e "\n${YELLOW}installing PHP 8.3 + extensions${ENDCOLOR}"
./scripts/install-php8.3.sh &>> ./logs/install-php8.3.log
echo -e "\xE2\x9C\x94 done"
# echo "" &>> ./logs/install-php8.2.log
# echo "================================= $(date) =================================" &>> ./logs/install-php8.2.log
# echo -e "\n${YELLOW}installing PHP 8.2 + extensions${ENDCOLOR}"
# ./scripts/install-php8.2.sh &>> ./logs/install-php8.2.log
# echo -e "\xE2\x9C\x94 done"
# echo "" &>> ./logs/install-php8.1.log
# echo "================================= $(date) =================================" &>> ./logs/install-php8.1.log
# echo -e "\n${YELLOW}installing PHP 8.1 + extensions${ENDCOLOR}"
# ./scripts/install-php8.1.sh &>> ./logs/install-php8.1.log
# echo -e "\xE2\x9C\x94 done"
# echo "" &>> ./logs/install-php8.0.log
# echo "================================= $(date) =================================" &>> ./logs/install-php8.0.log
# echo -e "\n${YELLOW}installing PHP 8.0 + extensions${ENDCOLOR}"
# ./scripts/install-php8.0.sh &>> ./logs/install-php8.0.log
# echo -e "\xE2\x9C\x94 done"
# echo "" &>> ./logs/install-php7.4.log
# echo "================================= $(date) =================================" &>> ./logs/install-php7.4.log
# echo -e "\n${YELLOW}installing PHP 7.4 + extensions${ENDCOLOR}"
# ./scripts/install-php7.4.sh &>> ./logs/install-php7.4.log
# echo -e "\xE2\x9C\x94 done"
echo "" &>> ./logs/set-default-php-version.log
echo "================================= $(date) =================================" &>> ./logs/set-default-php-version.log
echo -e "\n${YELLOW}Set default php version${ENDCOLOR}"
./scripts/set-default-php-version.sh &>> ./logs/set-default-php-version.log
echo -e "\xE2\x9C\x94 done"
echo "" &>> ./logs/install-composer.log
echo "================================= $(date) =================================" &>> ./logs/install-composer.log
echo -e "\n${YELLOW}installing composer${ENDCOLOR}"
./scripts/install-composer.sh &>> ./logs/install-composer.log
echo -e "\xE2\x9C\x94 done"
# echo "" &>> ./logs/short-bash-name.log
# echo "================================= $(date) =================================" &>> ./logs/short-bash-name.log
# echo -e "\n${YELLOW}shorten bash name${ENDCOLOR}"
# ./scripts/short-bash-name.sh &>> ./logs/short-bash-name.log
# echo -e "\xE2\x9C\x94 done"
echo -e "\n${GREEN}-------------------${ENDCOLOR}"
echo -e "${GREEN}installed versions:${ENDCOLOR}"
./scripts/show-versions.sh
echo -e "\n${YELLOW}NOTE: Exit and enter bash to apply, or run the following command:${ENDCOLOR} ${GREEN}source ~/.bashrc${ENDCOLOR}\n"