Skip to content

Commit b2277da

Browse files
committed
Update | Auto-Save .env File
1 parent ec6c9c6 commit b2277da

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

pterodactylpanelreinstall.sh

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,34 @@ if [[ $EUID -ne 0 ]]; then
1717
exit 1
1818
fi
1919

20-
# Le reste du script ici
20+
# Le reste du script ici
21+
22+
########################################## AUTO-SAVE .env FILE ##########################################
23+
24+
echo ""
25+
echo "${GREEN}${BOLD}Auto-Save .env File${RESET}"
26+
echo ""
27+
28+
mkdir /tmp/pterodactylpanelreinstall
29+
mv /var/wwww/pterodactyl/.env /tmp/pterodactylpanelreinstall/
30+
31+
32+
33+
34+
35+
36+
37+
COPY .env file in /var/www/pterodactyl/
38+
39+
cd ~
40+
sudo rm -r /var/www/pterodactyl
41+
sudo mkdir /var/www/pterodactyl
42+
cd /var/www/pterodactyl
43+
curl -Lo panel.tar.gz https://github.com/pterodactyl/panel/releases/latest/download/panel.tar.gz
44+
tar -xzvf panel.tar.gz
45+
sudo chmod -R 755 storage/* bootstrap/cache/
46+
47+
Add back the .env
48+
49+
composer install --no-dev --optimize-autoloader
50+
chown -R www-data:www-data /var/www/pterodactyl/*

0 commit comments

Comments
 (0)