Skip to content

Commit d3d0c77

Browse files
committed
Update backup.sh
1 parent 5732731 commit d3d0c77

File tree

14 files changed

+65
-23
lines changed

14 files changed

+65
-23
lines changed

backup.sh

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

1515
#### Variables ####
16-
SCRIPT_VERSION="v0.8"
1716
SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
1817

1918

@@ -38,9 +37,43 @@ reset="\e[0m"
3837
red='\033[0;31m'
3938

4039

41-
#### Only Theme Argon ####
40+
#### Removal of theme files ####
4241

43-
removeargon() {
42+
DET() {
43+
if [ -f "/var/www/pterodactyl/resources/scripts/user.css" ]; then
44+
cd /var/www/pterodactyl/resources/scripts
45+
rm -r user.css
46+
cd
47+
else
48+
echo
49+
fi
50+
if [ -f "/var/www/pterodactyl/public/themes/pterodactyl/css/admin.css" ]; then
51+
cd /var/www/pterodactyl/public/themes/pterodactyl/css
52+
rm -r admin.css
53+
cd
54+
else
55+
echo
56+
fi
57+
}
58+
59+
zing() {
60+
if [ -f "/var/www/pterodactyl/resources/scripts/components/SidePanel.tsx" ]; then
61+
cd /var/www/pterodactyl/resources/scripts/components
62+
rm -r SidePanel.tsx
63+
cd
64+
else
65+
echo
66+
fi
67+
if [ -f "/var/www/pterodactyl/resources/scripts/components/server/files/FileViewer.tsx" ]; then
68+
cd /var/www/pterodactyl/resources/scripts/components/server/files
69+
rm -r FileViewer.tsx
70+
cd
71+
else
72+
echo
73+
fi
74+
}
75+
76+
argon() {
4477
if [ -d "/var/www/pterodactyl/public/themes/argon" ]; then
4578
cd /var/www/pterodactyl/public/themes
4679
rm -R argon
@@ -69,15 +102,22 @@ cd /var/www/pterodactyl/PanelBackup
69102
unzip PanelBackup.zip
70103
rm -R PanelBackup.zip
71104
cp -rf app config database public resources routes storage .env /var/www/pterodactyl
72-
cd ..
73-
rm -R PanelBackup
105+
cd
74106
else
75107
print_brake 45
76108
echo -e "* ${red}There was no backup to restore, Aborting...${reset}"
77109
print_brake 45
78110
echo
79111
exit 1
80112
fi
113+
if [ -f "/var/www/pterodactyl/PanelBackup/tailwind.config" ]; then
114+
cd /var/www/pterodactyl/PanelBackup
115+
cp -rf tailwind.config /var/www/pterodactyl
116+
cd ..
117+
rm -rf PanelBackup
118+
else
119+
echo
120+
fi
81121
}
82122

83123

@@ -93,6 +133,8 @@ print_brake 50
93133

94134

95135
#### Exec Script ####
96-
removeargon
136+
DET
137+
zing
138+
argon
97139
restore
98140
bye

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set -e
1212
#
1313
########################################################
1414

15-
SCRIPT_VERSION="v0.8"
15+
SCRIPT_VERSION="v0.8.1"
1616

1717

1818
print_brake() {

themes/version0.7.19/Argon/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set -e
1313
########################################################
1414

1515
#### Variables ####
16-
SCRIPT_VERSION="v0.8"
16+
SCRIPT_VERSION="v0.8.1"
1717
ARGON="APP_THEME=argon"
1818
SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
1919

themes/version0.7.19/BlackEndSpace/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set -e
1313
########################################################
1414

1515
#### Variables ####
16-
SCRIPT_VERSION="v0.8"
16+
SCRIPT_VERSION="v0.8.1"
1717
SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
1818

1919

themes/version0.7.19/BlueBrick/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set -e
1313
########################################################
1414

1515
#### Variables ####
16-
SCRIPT_VERSION="v0.8"
16+
SCRIPT_VERSION="v0.8.1"
1717
SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
1818

1919

themes/version0.7.19/LimeStitch/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set -e
1313
########################################################
1414

1515
#### Variables ####
16-
SCRIPT_VERSION="v0.8"
16+
SCRIPT_VERSION="v0.8.1"
1717
SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
1818

1919

themes/version0.7.19/MinecraftMadness/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set -e
1313
########################################################
1414

1515
#### Variables ####
16-
SCRIPT_VERSION="v0.8"
16+
SCRIPT_VERSION="v0.8.1"
1717
SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
1818

1919

themes/version0.7.19/NothingButGraphite/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set -e
1313
########################################################
1414

1515
#### Variables ####
16-
SCRIPT_VERSION="v0.8"
16+
SCRIPT_VERSION="v0.8.1"
1717
SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
1818

1919

themes/version0.7.19/RedApe/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set -e
1313
########################################################
1414

1515
#### Variables ####
16-
SCRIPT_VERSION="v0.8"
16+
SCRIPT_VERSION="v0.8.1"
1717
SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
1818

1919

themes/version0.7.19/TangoTwist/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set -e
1313
########################################################
1414

1515
#### Variables ####
16-
SCRIPT_VERSION="v0.8"
16+
SCRIPT_VERSION="v0.8.1"
1717
SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
1818

1919

0 commit comments

Comments
 (0)