This repository was archived by the owner on Jun 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathbuild.sh
More file actions
42 lines (31 loc) · 1.35 KB
/
Copy pathbuild.sh
File metadata and controls
42 lines (31 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
if [ ! -f "artisan" ]; then
echo "Could not find the Artisan file, Moving to Default Location."
cd /var/www/pterodactyl
fi
if [ ! -f "artisan" ]; then
echo "We tried to find your Artisan file but we couldnt, Please move to the directory you installed the Panel and re-run this script. Have a Good Day!"
cd /var/www/pterodactyl
else
echo "Your Artisan File has been found!"
sleep 2
echo "Checking you have ZIP Installed"
yum install zip -y 2> /dev/null
apt install zip -y 2> /dev/null
echo "Backing up previous panel files in the case that something goes wrong!"
zip -r PterodactylBackup-$(date +"%Y-%m-%d").zip public resources 2> /dev/null
echo "Downloading the Theme you picked"
mkdir -p tempdown && cd tempdown && git clone https://github.com/icedmoca/paneltheme.git .
cp -r Master/public ..
cp -r Master/resources ..
echo "Files have been copied over!"
sleep 2
echo "Removing the temp folders created in the copy process"
cd .. && rm -rf tempdown
sed -i 's/APP_THEME=pterodactyl/APP_THEME=argon/g' /var/www/pterodactyl/.env
echo "Changed theme to argon in .env"
php artisan theme:refresh-cache
php artisan view:clear
echo "Refreshed theme cache and view clear"
echo "Complete! Have a good day and dont forget to refresh your browser cache! (CTRL + F5)"
fi