Last active
June 19, 2025 06:20
-
-
Save Wqrld/02f2bd87587c559445c183f956f3257d to your computer and use it in GitHub Desktop.
bash <(curl -s https://gist.githubusercontent.com/Wqrld/02f2bd87587c559445c183f956f3257d/raw/updatepterodactyl.sh)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
if [[ "${TRACE-0}" == "1" ]]; then | |
set -o xtrace | |
fi | |
if [[ "${1-}" =~ ^-*h(elp)?$ ]]; then | |
echo 'Usage: ./updatepterodactyl.sh | |
' | |
exit | |
fi | |
cd "$(dirname "$0")" | |
main() { | |
cd /var/www/pterodactyl | |
cat config/app.php | grep version | |
echo "continue or ctrl-c" | |
read smthing | |
apt update | |
apt -y install php8.3 php8.3-{common,cli,gd,mysql,mbstring,bcmath,xml,fpm,curl,zip} | |
sed -i 's/8.1/8.3/g' /etc/nginx/sites-enabled/pterodactyl.conf | |
service nginx restart | |
php artisan down | |
curl -L https://github.com/pterodactyl/panel/releases/latest/download/panel.tar.gz | tar -xzv | |
chmod -R 755 storage/* bootstrap/cache | |
composer install --no-dev --optimize-autoloader | |
php artisan view:clear | |
php artisan config:clear | |
php artisan migrate --seed --force | |
chown -R www-data:www-data /var/www/pterodactyl/* | |
php artisan queue:restart | |
php artisan up | |
echo "check panel" | |
cat /etc/nginx/sites-enabled/pterodactyl.conf | grep server_name | |
} | |
main "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment