Skip to content

Commit 0b785a7

Browse files
authored
Merge pull request Ferks-FK#7 from Ferks-FK/Big_Update
Big update
2 parents ddb50b3 + 14842b9 commit 0b785a7

File tree

9 files changed

+386
-16
lines changed

9 files changed

+386
-16
lines changed

backup.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
1919
#### Update Variables ####
2020

2121
update_variables() {
22-
DET="$PTERO/resources/scripts/user.css"
22+
INFORMATIONS="/var/log/Pterodactyl-AutoThemes-informations"
23+
DET="$PTERO/public/themes/pterodactyl/css/admin.css"
2324
ZING="$PTERO/resources/scripts/components/SidePanel.tsx"
25+
if [ -f "${INFORMATIONS}/background.txt" ]; then
26+
BACKGROUND="$(cat "${INFORMATIONS}/background.txt")"
27+
fi
2428
}
2529

2630

@@ -87,6 +91,14 @@ if [ -f "$ZING" ]; then
8791
rm -r "$PTERO/resources/scripts/components/SidePanel.tsx"
8892
fi
8993
#### THEME ZINGTHEME ####
94+
95+
#### BACKGROUND VIDEO ####
96+
if [ -f "$PTERO/public/$BACKGROUND" ]; then
97+
cd "$PTERO/public" && rm -r "$BACKGROUND"
98+
rm -r "$PTERO/resources/scripts/user.css"
99+
rm -r "$INFORMATIONS"
100+
fi
101+
#### BACKGROUND VIDEO ####
90102
}
91103

92104

install.sh

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ set -e
1212
#
1313
########################################################
1414

15-
SCRIPT_VERSION="v1.2"
15+
16+
SCRIPT_VERSION="v1.3"
1617

1718

1819
print_brake() {
@@ -32,11 +33,11 @@ reset="\e[0m"
3233
red='\033[0;31m'
3334

3435
error() {
35-
COLOR_RED='\033[0;31m'
36-
COLOR_NC='\033[0m'
36+
red='\033[0;31m'
37+
reset="\e[0m"
3738

3839
echo ""
39-
echo -e "* ${COLOR_RED}ERROR${COLOR_NC}: $1"
40+
echo -e "* ${red}ERROR${reset}: $1"
4041
echo ""
4142
}
4243

@@ -101,15 +102,20 @@ FlancoTheme() {
101102
bash <(curl -s https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/${SCRIPT_VERSION}/themes/version1.x/FlancoTheme/build.sh)
102103
}
103104

105+
BackgroundVideo() {
106+
bash <(curl -s https://raw.githubusercontent.com/Ferks-FK/Pterodactyl-AutoThemes/${SCRIPT_VERSION}/themes/version1.x/BackgroundVideo/build.sh)
107+
}
108+
104109

105110
while [ "$done" == false ]; do
106111
options=(
107-
"Restore Panel Backup (To remove some theme and restore your old panel.)"
112+
"Restore Panel Backup (Only if you have an installation problem.)"
108113
"Install Dracula (Only 1.6.6 and 1.7.0)"
109114
"Install Enola (Only 1.6.6 and 1.7.0)"
110115
"Install Twilight (Only 1.6.6 and 1.7.0)"
111116
"Install Zing Theme (Only 1.6.6 and 1.7.0)"
112-
"Install Flanco Theme (Only 1.6.6 and 1.7.0)"
117+
"Install Flanco Theme (Only 1.6.6 and 1.7.0"
118+
"Install Background Video (Only 1.6.6 and 1.7.0)"
113119

114120

115121
"Cancel Installation"
@@ -122,6 +128,7 @@ while [ "$done" == false ]; do
122128
"Twilight"
123129
"ZingTheme"
124130
"FlancoTheme"
131+
"BackgroundVideo"
125132

126133

127134
"cancel"
5.57 MB
Binary file not shown.

0 commit comments

Comments
 (0)