File tree Expand file tree Collapse file tree 14 files changed +93
-155
lines changed
Expand file tree Collapse file tree 14 files changed +93
-155
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1212#
1313# #######################################################
1414
15- SCRIPT_VERSION=" v0.5 "
15+ SCRIPT_VERSION=" v0.6 "
1616
1717
1818print_brake () {
Original file line number Diff line number Diff line change 1313# #######################################################
1414
1515# ### Variables ####
16- SCRIPT_VERSION=" v0.5 "
16+ SCRIPT_VERSION=" v0.6 "
1717ARGON=" APP_THEME=argon"
1818SUPPORT_LINK=" https://discord.gg/buDBbSGJmQ"
1919
Original file line number Diff line number Diff line change 1313# #######################################################
1414
1515# ### Variables ####
16- SCRIPT_VERSION=" v0.5 "
16+ SCRIPT_VERSION=" v0.6 "
1717SUPPORT_LINK=" https://discord.gg/buDBbSGJmQ"
1818
1919
Original file line number Diff line number Diff line change 1313# #######################################################
1414
1515# ### Variables ####
16- SCRIPT_VERSION=" v0.5 "
16+ SCRIPT_VERSION=" v0.6 "
1717SUPPORT_LINK=" https://discord.gg/buDBbSGJmQ"
1818
1919
Original file line number Diff line number Diff line change 1313# #######################################################
1414
1515# ### Variables ####
16- SCRIPT_VERSION=" v0.5 "
16+ SCRIPT_VERSION=" v0.6 "
1717SUPPORT_LINK=" https://discord.gg/buDBbSGJmQ"
1818
1919
Original file line number Diff line number Diff line change 1313# #######################################################
1414
1515# ### Variables ####
16- SCRIPT_VERSION=" v0.5 "
16+ SCRIPT_VERSION=" v0.6 "
1717SUPPORT_LINK=" https://discord.gg/buDBbSGJmQ"
1818
1919
Original file line number Diff line number Diff line change 1313# #######################################################
1414
1515# ### Variables ####
16- SCRIPT_VERSION=" v0.5 "
16+ SCRIPT_VERSION=" v0.6 "
1717SUPPORT_LINK=" https://discord.gg/buDBbSGJmQ"
1818
1919
Original file line number Diff line number Diff line change 1313# #######################################################
1414
1515# ### Variables ####
16- SCRIPT_VERSION=" v0.5 "
16+ SCRIPT_VERSION=" v0.6 "
1717SUPPORT_LINK=" https://discord.gg/buDBbSGJmQ"
1818
1919
Original file line number Diff line number Diff line change 1313# #######################################################
1414
1515# ### Variables ####
16- SCRIPT_VERSION=" v0.5 "
16+ SCRIPT_VERSION=" v0.6 "
1717SUPPORT_LINK=" https://discord.gg/buDBbSGJmQ"
1818
1919
You can’t perform that action at this time.
0 commit comments