File tree Expand file tree Collapse file tree 6 files changed +38
-55
lines changed
Expand file tree Collapse file tree 6 files changed +38
-55
lines changed Original file line number Diff line number Diff line change 1212#
1313# #######################################################
1414
15- SCRIPT_VERSION=" v1.0 "
15+ SCRIPT_VERSION=" v1.1 "
1616
1717
1818print_brake () {
@@ -32,11 +32,11 @@ reset="\e[0m"
3232red=' \033[0;31m'
3333
3434error () {
35- COLOR_RED =' \033[0;31m'
36- COLOR_NC= ' \033 [0m'
35+ red =' \033[0;31m'
36+ reset= " \e [0m"
3737
3838 echo " "
39- echo -e " * ${COLOR_RED } ERROR${COLOR_NC } : $1 "
39+ echo -e " * ${red } ERROR${reset } : $1 "
4040 echo " "
4141}
4242
Original file line number Diff line number Diff line change 1515
1616# ### Fixed Variables ####
1717
18- SCRIPT_VERSION=" v0.9 "
18+ SCRIPT_VERSION=" v1.1 "
1919SUPPORT_LINK=" https://discord.gg/buDBbSGJmQ"
2020
2121
@@ -145,15 +145,11 @@ case "$OS" in
145145debian | ubuntu)
146146curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - && apt-get install -y nodejs
147147;;
148+ centos)
149+ [ " $OS_VER_MAJOR " == " 7" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn
150+ [ " $OS_VER_MAJOR " == " 8" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs
151+ ;;
148152esac
149-
150- if [ " $OS_VER_MAJOR " == " 7" ]; then
151- curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn
152- fi
153-
154- if [ " $OS_VER_MAJOR " == " 8" ]; then
155- curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs
156- fi
157153}
158154
159155
238234bye () {
239235print_brake 50
240236echo
241- echo -e " * ${GREEN} The theme ${YELLOW} Dracula${GREEN} was successfully installed."
237+ echo -e " ${GREEN} * The theme ${YELLOW} Dracula${GREEN} was successfully installed."
242238echo -e " * A security backup of your panel has been created."
243239echo -e " * Thank you for using this script."
244240echo -e " * Support group: ${YELLOW} $( hyperlink " $SUPPORT_LINK " ) ${reset} "
Original file line number Diff line number Diff line change 1515
1616# ### Fixed Variables ####
1717
18- SCRIPT_VERSION=" v0.9 "
18+ SCRIPT_VERSION=" v1.1 "
1919SUPPORT_LINK=" https://discord.gg/buDBbSGJmQ"
2020
2121
@@ -145,15 +145,11 @@ case "$OS" in
145145debian | ubuntu)
146146curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - && apt-get install -y nodejs
147147;;
148+ centos)
149+ [ " $OS_VER_MAJOR " == " 7" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn
150+ [ " $OS_VER_MAJOR " == " 8" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs
151+ ;;
148152esac
149-
150- if [ " $OS_VER_MAJOR " == " 7" ]; then
151- curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn
152- fi
153-
154- if [ " $OS_VER_MAJOR " == " 8" ]; then
155- curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs
156- fi
157153}
158154
159155
220216print_brake 25
221217echo -e " * ${GREEN} Producing panel...${reset} "
222218print_brake 25
219+ echo
223220if [ -d " $PTERO /node_modules" ]; then
224221 cd " $PTERO "
225222 yarn add @emotion/react
237234bye () {
238235print_brake 50
239236echo
240- echo -e " * ${GREEN} The theme ${YELLOW} Enola${GREEN} was successfully installed."
237+ echo -e " ${GREEN} * The theme ${YELLOW} Enola${GREEN} was successfully installed."
241238echo -e " * A security backup of your panel has been created."
242239echo -e " * Thank you for using this script."
243240echo -e " * Support group: ${YELLOW} $( hyperlink " $SUPPORT_LINK " ) ${reset} "
Original file line number Diff line number Diff line change 1515
1616# ### Fixed Variables ####
1717
18- SCRIPT_VERSION=" v0.9 "
18+ SCRIPT_VERSION=" v1.1 "
1919SUPPORT_LINK=" https://discord.gg/buDBbSGJmQ"
2020
2121
@@ -143,17 +143,13 @@ print_brake 30
143143echo
144144case " $OS " in
145145debian | ubuntu)
146- curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - && apt-get install -y nodejs && sudo apt-get install -y zip
146+ curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - && apt-get install -y nodejs
147+ ;;
148+ centos)
149+ [ " $OS_VER_MAJOR " == " 7" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn
150+ [ " $OS_VER_MAJOR " == " 8" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs
147151;;
148152esac
149-
150- if [ " $OS_VER_MAJOR " == " 7" ]; then
151- curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn && sudo yum install -y zip
152- fi
153-
154- if [ " $OS_VER_MAJOR " == " 8" ]; then
155- curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs && sudo dnf install -y zip
156- fi
157153}
158154
159155
211207print_brake 25
212208echo -e " * ${GREEN} Producing panel...${reset} "
213209print_brake 25
210+ echo
214211if [ -d " $PTERO /node_modules" ]; then
215212 cd " $PTERO "
216213 yarn add @emotion/react
228225bye () {
229226print_brake 50
230227echo
231- echo -e " * ${GREEN} The theme ${YELLOW} Flanco Theme${GREEN} was successfully installed."
228+ echo -e " ${GREEN} * The theme ${YELLOW} Flanco Theme${GREEN} was successfully installed."
232229echo -e " * A security backup of your panel has been created."
233230echo -e " * Thank you for using this script."
234231echo -e " * Support group: ${YELLOW} $( hyperlink " $SUPPORT_LINK " ) ${reset} "
Original file line number Diff line number Diff line change 1515
1616# ### Fixed Variables ####
1717
18- SCRIPT_VERSION=" v0.9 "
18+ SCRIPT_VERSION=" v1.1 "
1919SUPPORT_LINK=" https://discord.gg/buDBbSGJmQ"
2020
2121
@@ -145,15 +145,11 @@ case "$OS" in
145145debian | ubuntu)
146146curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - && apt-get install -y nodejs
147147;;
148+ centos)
149+ [ " $OS_VER_MAJOR " == " 7" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn
150+ [ " $OS_VER_MAJOR " == " 8" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs
151+ ;;
148152esac
149-
150- if [ " $OS_VER_MAJOR " == " 7" ]; then
151- curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn
152- fi
153-
154- if [ " $OS_VER_MAJOR " == " 8" ]; then
155- curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs
156- fi
157153}
158154
159155
220216print_brake 25
221217echo -e " * ${GREEN} Producing panel...${reset} "
222218print_brake 25
219+ echo
223220if [ -d " $PTERO /node_modules" ]; then
224221 cd " $PTERO "
225222 yarn add @emotion/react
237234bye () {
238235print_brake 50
239236echo
240- echo -e " * ${GREEN} The theme ${YELLOW} Twilight${GREEN} was successfully installed."
237+ echo -e " ${GREEN} * The theme ${YELLOW} Twilight${GREEN} was successfully installed."
241238echo -e " * A security backup of your panel has been created."
242239echo -e " * Thank you for using this script."
243240echo -e " * Support group: ${YELLOW} $( hyperlink " $SUPPORT_LINK " ) ${reset} "
Original file line number Diff line number Diff line change 1515
1616# ### Fixed Variables ####
1717
18- SCRIPT_VERSION=" v1.0 "
18+ SCRIPT_VERSION=" v1.1 "
1919SUPPORT_LINK=" https://discord.gg/buDBbSGJmQ"
2020
2121
@@ -151,15 +151,11 @@ case "$OS" in
151151debian | ubuntu)
152152curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - && apt-get install -y nodejs
153153;;
154+ centos)
155+ [ " $OS_VER_MAJOR " == " 7" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn
156+ [ " $OS_VER_MAJOR " == " 8" ] && curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs
157+ ;;
154158esac
155-
156- if [ " $OS_VER_MAJOR " == " 7" ]; then
157- curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo yum install -y nodejs yarn
158- fi
159-
160- if [ " $OS_VER_MAJOR " == " 8" ]; then
161- curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash - && sudo dnf install -y nodejs
162- fi
163159}
164160
165161
272268bye () {
273269print_brake 50
274270echo
275- echo -e " * ${GREEN} The theme ${YELLOW} Zing Theme${GREEN} was successfully installed."
271+ echo -e " ${GREEN} * The theme ${YELLOW} Zing Theme${GREEN} was successfully installed."
276272echo -e " * A security backup of your panel has been created."
277273echo -e " * Thank you for using this script."
278274echo -e " * Support group: ${YELLOW} $( hyperlink " $SUPPORT_LINK " ) ${reset} "
You can’t perform that action at this time.
0 commit comments