Skip to content

Commit 5114e4c

Browse files
committed
Theme for 0.7.19
1 parent b4b6fa5 commit 5114e4c

File tree

14 files changed

+994
-0
lines changed

14 files changed

+994
-0
lines changed
2.21 MB
Binary file not shown.
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
########################################################
6+
#
7+
# Pterodactyl-AutoThemes Installation
8+
#
9+
# Created and maintained by Ferks-FK
10+
#
11+
# Protected by GPL 3.0 License
12+
#
13+
########################################################
14+
15+
#### Variables ####
16+
SCRIPT_VERSION="v0.4"
17+
SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
18+
19+
20+
print_brake() {
21+
for ((n = 0; n < $1; n++)); do
22+
echo -n "#"
23+
done
24+
echo ""
25+
}
26+
27+
28+
hyperlink() {
29+
echo -e "\e]8;;${1}\a${1}\e]8;;\a"
30+
}
31+
32+
33+
#### Colors ####
34+
35+
GREEN="\e[0;92m"
36+
YELLOW="\033[1;33m"
37+
reset="\e[0m"
38+
39+
40+
#### OS check ####
41+
42+
check_distro() {
43+
if [ -f /etc/os-release ]; then
44+
. /etc/os-release
45+
OS=$(echo "$ID")
46+
OS_VER=$VERSION_ID
47+
elif type lsb_release >/dev/null 2>&1; then
48+
OS=$(lsb_release -si)
49+
OS_VER=$(lsb_release -sr)
50+
elif [ -f /etc/lsb-release ]; then
51+
. /etc/lsb-release
52+
OS=$(echo "$DISTRIB_ID")
53+
OS_VER=$DISTRIB_RELEASE
54+
elif [ -f /etc/debian_version ]; then
55+
OS="debian"
56+
OS_VER=$(cat /etc/debian_version)
57+
elif [ -f /etc/SuSe-release ]; then
58+
OS="SuSE"
59+
OS_VER="?"
60+
elif [ -f /etc/redhat-release ]; then
61+
OS="Red Hat/CentOS"
62+
OS_VER="?"
63+
else
64+
OS=$(uname -s)
65+
OS_VER=$(uname -r)
66+
fi
67+
68+
OS=$(echo "$OS")
69+
OS_VER_MAJOR=$(echo "$OS_VER" | cut -d. -f1)
70+
}
71+
72+
73+
#### Install Dependencies ####
74+
75+
dependencies() {
76+
echo
77+
print_brake 30
78+
echo -e "* ${GREEN}Installing dependencies...${reset}"
79+
print_brake 30
80+
echo
81+
case "$OS" in
82+
debian | ubuntu)
83+
apt-get install -y zip
84+
;;
85+
86+
centos)
87+
[ "$OS_VER_MAJOR" == "7" ] && yum install -y zip
88+
[ "$OS_VER_MAJOR" == "8" ] && dnf install -y zip
89+
;;
90+
esac
91+
}
92+
93+
94+
#### Panel Backup ####
95+
96+
backup() {
97+
echo
98+
print_brake 31
99+
echo -e "* ${GREEN}Performing security backup...${reset}"
100+
print_brake 31
101+
cd /var/www/pterodactyl
102+
zip -r PteroBackup-$(date +"%Y-%m-%d").zip public resources
103+
cd
104+
}
105+
106+
107+
#### Donwload Files ####
108+
109+
download_files() {
110+
print_brake 25
111+
echo -e "* ${GREEN}Downloading files...${reset}"
112+
print_brake 25
113+
cd /var/www/pterodactyl
114+
mkdir -p temp
115+
cd temp
116+
curl -sSLo BlackEndSpace.tar.gz https://raw.githubusercontent.com/Alok-NetWork/Pterodactyl-AutoThemes/${SCRIPT_VERSION}/themes/version0.7.19/BlackEndSpace/BlackEndSpace.tar.gz
117+
tar -xzvf BlackEndSpace.tar.gz
118+
cd BlackEndSpace
119+
cp -rf -- * /var/www/pterodactyl
120+
cd
121+
cd /var/www/pterodactyl
122+
rm -rf temp
123+
}
124+
125+
126+
bye() {
127+
print_brake 50
128+
echo
129+
echo -e "* ${GREEN}The theme ${YELLOW}Black End Space${GREEN} was successfully installed.${reset}"
130+
echo -e "* ${GREEN}Thank you for using this script.${reset}"
131+
echo -e "* ${GREEN}Support group: $(hyperlink "$SUPPORT_LINK")${reset}"
132+
echo
133+
print_brake 50
134+
}
135+
136+
137+
#### Exec Script ####
138+
check_distro
139+
dependencies
140+
backup
141+
download_files
142+
bye
1.99 MB
Binary file not shown.
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
########################################################
6+
#
7+
# Pterodactyl-AutoThemes Installation
8+
#
9+
# Created and maintained by Ferks-FK
10+
#
11+
# Protected by GPL 3.0 License
12+
#
13+
########################################################
14+
15+
#### Variables ####
16+
SCRIPT_VERSION="v0.4"
17+
SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
18+
19+
20+
print_brake() {
21+
for ((n = 0; n < $1; n++)); do
22+
echo -n "#"
23+
done
24+
echo ""
25+
}
26+
27+
28+
hyperlink() {
29+
echo -e "\e]8;;${1}\a${1}\e]8;;\a"
30+
}
31+
32+
33+
#### Colors ####
34+
35+
GREEN="\e[0;92m"
36+
YELLOW="\033[1;33m"
37+
reset="\e[0m"
38+
39+
40+
#### OS check ####
41+
42+
check_distro() {
43+
if [ -f /etc/os-release ]; then
44+
. /etc/os-release
45+
OS=$(echo "$ID")
46+
OS_VER=$VERSION_ID
47+
elif type lsb_release >/dev/null 2>&1; then
48+
OS=$(lsb_release -si)
49+
OS_VER=$(lsb_release -sr)
50+
elif [ -f /etc/lsb-release ]; then
51+
. /etc/lsb-release
52+
OS=$(echo "$DISTRIB_ID")
53+
OS_VER=$DISTRIB_RELEASE
54+
elif [ -f /etc/debian_version ]; then
55+
OS="debian"
56+
OS_VER=$(cat /etc/debian_version)
57+
elif [ -f /etc/SuSe-release ]; then
58+
OS="SuSE"
59+
OS_VER="?"
60+
elif [ -f /etc/redhat-release ]; then
61+
OS="Red Hat/CentOS"
62+
OS_VER="?"
63+
else
64+
OS=$(uname -s)
65+
OS_VER=$(uname -r)
66+
fi
67+
68+
OS=$(echo "$OS")
69+
OS_VER_MAJOR=$(echo "$OS_VER" | cut -d. -f1)
70+
}
71+
72+
73+
#### Install Dependencies ####
74+
75+
dependencies() {
76+
echo
77+
print_brake 30
78+
echo -e "* ${GREEN}Installing dependencies...${reset}"
79+
print_brake 30
80+
echo
81+
case "$OS" in
82+
debian | ubuntu)
83+
apt-get install -y zip
84+
;;
85+
86+
centos)
87+
[ "$OS_VER_MAJOR" == "7" ] && yum install -y zip
88+
[ "$OS_VER_MAJOR" == "8" ] && dnf install -y zip
89+
;;
90+
esac
91+
}
92+
93+
94+
#### Panel Backup ####
95+
96+
backup() {
97+
echo
98+
print_brake 31
99+
echo -e "* ${GREEN}Performing security backup...${reset}"
100+
print_brake 31
101+
cd /var/www/pterodactyl
102+
zip -r PteroBackup-$(date +"%Y-%m-%d").zip public resources
103+
cd
104+
}
105+
106+
107+
#### Donwload Files ####
108+
109+
download_files() {
110+
print_brake 25
111+
echo -e "* ${GREEN}Downloading files...${reset}"
112+
print_brake 25
113+
cd /var/www/pterodactyl
114+
mkdir -p temp
115+
cd temp
116+
curl -sSLo BlueBrick.tar.gz https://raw.githubusercontent.com/Alok-NetWork/Pterodactyl-AutoThemes/${SCRIPT_VERSION}/themes/version0.7.19/BlueBrick/BlueBrick.tar.gz
117+
tar -xzvf BlueBrick.tar.gz
118+
cd BlueBrick
119+
cp -rf -- * /var/www/pterodactyl
120+
cd
121+
cd /var/www/pterodactyl
122+
rm -rf temp
123+
}
124+
125+
126+
bye() {
127+
print_brake 50
128+
echo
129+
echo -e "* ${GREEN}The theme ${YELLOW}Blue Brick${GREEN} was successfully installed.${reset}"
130+
echo -e "* ${GREEN}Thank you for using this script.${reset}"
131+
echo -e "* ${GREEN}Support group: $(hyperlink "$SUPPORT_LINK")${reset}"
132+
echo
133+
print_brake 50
134+
}
135+
136+
137+
#### Exec Script ####
138+
check_distro
139+
dependencies
140+
backup
141+
download_files
142+
bye
1.97 MB
Binary file not shown.

0 commit comments

Comments
 (0)