1
0
mirror of https://github.com/tommytran732/Pterodactyl-Script synced 2024-11-22 18:41:32 -05:00

Update install.sh

This commit is contained in:
Tommy 2021-11-02 01:46:51 -04:00 committed by GitHub
parent 60e26f9888
commit af4e443cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -456,15 +456,7 @@ EOF
} }
upgrade_pterodactyl(){ upgrade_pterodactyl(){
cd /var/www/pterodactyl || exit cd /var/www/pterodactyl && php artisan p:upgrade
php artisan down
curl -L https://github.com/pterodactyl/panel/releases/download/${PANEL}/panel.tar.gz | tar --strip-components=1 -xzv
chmod -R 755 storage/* bootstrap/cache
composer install --no-dev --optimize-autoloader
php artisan view:clear
php artisan config:clear
php artisan migrate --force
php artisan db:seed --force
if [ "$lsb_dist" = "ubuntu" ] || [ "$lsb_dist" = "debian" ]; then if [ "$lsb_dist" = "ubuntu" ] || [ "$lsb_dist" = "debian" ]; then
chown -R www-data:www-data * /var/www/pterodactyl chown -R www-data:www-data * /var/www/pterodactyl
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "rocky" ] || [ "$lsb_dist" != "almalinux" ]; then elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "rocky" ] || [ "$lsb_dist" != "almalinux" ]; then
@ -472,8 +464,6 @@ upgrade_pterodactyl(){
restorecon -R /var/www/pterodactyl restorecon -R /var/www/pterodactyl
fi fi
output "Your panel has successfully been updated to version ${PANEL}" output "Your panel has successfully been updated to version ${PANEL}"
php artisan up
php artisan queue:restart
} }
nginx_config() { nginx_config() {