File tree Expand file tree Collapse file tree 9 files changed +386
-16
lines changed
Expand file tree Collapse file tree 9 files changed +386
-16
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,12 @@ SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
1919# ### Update Variables ####
2020
2121update_variables () {
22- DET=" $PTERO /resources/scripts/user.css"
22+ INFORMATIONS=" /var/log/Pterodactyl-AutoThemes-informations"
23+ DET=" $PTERO /public/themes/pterodactyl/css/admin.css"
2324ZING=" $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"
8892fi
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
Original file line number Diff line number Diff line change 1212#
1313# #######################################################
1414
15- SCRIPT_VERSION=" v1.2"
15+
16+ SCRIPT_VERSION=" v1.3"
1617
1718
1819print_brake () {
@@ -32,11 +33,11 @@ reset="\e[0m"
3233red=' \033[0;31m'
3334
3435error () {
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() {
101102bash <( 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
105110while [ " $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"
You can’t perform that action at this time.
0 commit comments