Skip to content

Commit ae26b7e

Browse files
committed
Add New Option
1 parent ef69c7c commit ae26b7e

File tree

14 files changed

+93
-155
lines changed

14 files changed

+93
-155
lines changed

backup.sh

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
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.6"
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+
red='\033[0;31m'
39+
40+
41+
#### Restore Backup ####
42+
43+
restore() {
44+
echo
45+
print_brake 35
46+
echo -e "* ${GREEN}Checking for a backup...${reset}"
47+
print_brake 35
48+
echo
49+
if [ -f "/var/www/pterodactyl/PanelBackup/PanelBackup.zip" ]; then
50+
cd /var/www/pterodactyl/PanelBackup
51+
unzip PanelBackup.zip
52+
rm -R PanelBackup.zip
53+
cp -rf app config database public resources routes storage /var/www/pterodactyl
54+
cd ..
55+
rm -R PanelBackup
56+
cd
57+
php /var/www/pterodactyl/artisan theme:refresh-cache
58+
php /var/www/pterodactyl/artisan view:clear
59+
else
60+
echo
61+
print_brake 45
62+
echo -e "* ${red}There was no backup to restore, Aborting...${reset}"
63+
print_brake 45
64+
fi
65+
}
66+
67+
68+
bye() {
69+
print_brake 50
70+
echo
71+
echo -e "${GREEN}* Backup restored successfully!"
72+
echo -e "* Thank you for using this script."
73+
echo -e "* Support group: ${YELLOW}$(hyperlink "$SUPPORT_LINK")${reset}"
74+
echo
75+
print_brake 50
76+
}
77+
78+
79+
#### Exec Script ####
80+
restore
81+
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.5"
15+
SCRIPT_VERSION="v0.6"
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.5"
16+
SCRIPT_VERSION="v0.6"
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.5"
16+
SCRIPT_VERSION="v0.6"
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.5"
16+
SCRIPT_VERSION="v0.6"
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.5"
16+
SCRIPT_VERSION="v0.6"
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.5"
16+
SCRIPT_VERSION="v0.6"
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.5"
16+
SCRIPT_VERSION="v0.6"
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.5"
16+
SCRIPT_VERSION="v0.6"
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.5"
16+
SCRIPT_VERSION="v0.6"
1717
SUPPORT_LINK="https://discord.gg/buDBbSGJmQ"
1818

1919

0 commit comments

Comments
 (0)