File tree Expand file tree Collapse file tree 1 file changed +31
-1
lines changed
Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -17,4 +17,34 @@ if [[ $EUID -ne 0 ]]; then
1717 exit 1
1818fi
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/*
You can’t perform that action at this time.
0 commit comments