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

Update to rc.6

This commit is contained in:
TommyTran732 2020-09-18 08:09:47 -04:00 committed by GitHub
parent fcde92c70a
commit e2a9bf0909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,9 +159,9 @@ install_options(){
output "[1] Install the panel." output "[1] Install the panel."
output "[2] Install the daemon." output "[2] Install the daemon."
output "[3] Install the panel and daemon." output "[3] Install the panel and daemon."
output "[4] Upgrade 1.0.0-rc.x RC panel to 1.0.0-rc.5." output "[4] Upgrade 1.0.0-rc.x RC panel to 1.0.0-rc.6."
output "[5] Upgrade 1.0.0-rc.x daemon to 1.0.0-rc.5." output "[5] Upgrade 1.0.0-rc.x daemon to 1.0.0-rc.6."
output "[6] Upgrade the panel to 1.0.0-rc.x and daemon to 1.0.0-rc.5" output "[6] Upgrade the panel to 1.0.0-rc.x and daemon to 1.0.0-rc.6"
output "[7] Make Pterodactyl compatible with the mobile app (only use this after you have installed the panel - check out https://pterodactyl.cloud for more information)." output "[7] Make Pterodactyl compatible with the mobile app (only use this after you have installed the panel - check out https://pterodactyl.cloud for more information)."
output "[8] Update mobile compatibility." output "[8] Update mobile compatibility."
output "[9] Install or update to phpMyAdmin 5.0.2 (only use this after you have installed the panel)." output "[9] Install or update to phpMyAdmin 5.0.2 (only use this after you have installed the panel)."
@ -464,7 +464,7 @@ install_pterodactyl() {
output "Downloading Pterodactyl..." output "Downloading Pterodactyl..."
mkdir -p /var/www/pterodactyl mkdir -p /var/www/pterodactyl
cd /var/www/pterodactyl cd /var/www/pterodactyl
curl -Lo panel.tar.gz https://github.com/pterodactyl/panel/releases/download/v1.0.0-rc.5/panel.tar.gz curl -Lo panel.tar.gz https://github.com/pterodactyl/panel/releases/download/v1.0.0-rc.6/panel.tar.gz
tar --strip-components=1 -xzvf panel.tar.gz tar --strip-components=1 -xzvf panel.tar.gz
chmod -R 755 storage/* bootstrap/cache/ chmod -R 755 storage/* bootstrap/cache/
@ -547,7 +547,7 @@ EOF
upgrade_pterodactyl(){ upgrade_pterodactyl(){
cd /var/www/pterodactyl cd /var/www/pterodactyl
php artisan down php artisan down
curl -Lo panel.tar.gz https://github.com/pterodactyl/panel/releases/download/v1.0.0-rc.5/panel.tar.gz | tar --strip-components=1 -xzv curl -Lo panel.tar.gz https://github.com/pterodactyl/panel/releases/download/v1.0.0-rc.6/panel.tar.gz | tar --strip-components=1 -xzv
chmod -R 755 storage/* bootstrap/cache chmod -R 755 storage/* bootstrap/cache
composer install --no-dev --optimize-autoloader composer install --no-dev --optimize-autoloader
php artisan view:clear php artisan view:clear
@ -562,7 +562,7 @@ upgrade_pterodactyl(){
semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/pterodactyl/storage(/.*)?" semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/pterodactyl/storage(/.*)?"
restorecon -R /var/www/pterodactyl restorecon -R /var/www/pterodactyl
fi fi
output "Your panel has successfully been updated to version 1.0.0-rc.5." output "Your panel has successfully been updated to version 1.0.0-rc.6."
php artisan up php artisan up
php artisan queue:restart php artisan queue:restart
} }
@ -872,7 +872,7 @@ install_daemon() {
sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="[^"]*/& swapaccount=1/' /etc/default/grub sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="[^"]*/& swapaccount=1/' /etc/default/grub
output "Installing the Pterodactyl daemon..." output "Installing the Pterodactyl daemon..."
mkdir -p /etc/pterodactyl mkdir -p /etc/pterodactyl
curl -L -o /usr/local/bin/wings https://github.com/pterodactyl/wings/releases/download/v1.0.0-rc.5/wings_linux_amd64 curl -L -o /usr/local/bin/wings https://github.com/pterodactyl/wings/releases/download/v1.0.0-rc.6/wings_linux_amd64
chmod u+x /usr/local/bin/wings chmod u+x /usr/local/bin/wings
bash -c 'cat > /etc/systemd/system/wings.service' <<-'EOF' bash -c 'cat > /etc/systemd/system/wings.service' <<-'EOF'
[Unit] [Unit]
@ -903,10 +903,10 @@ EOF
} }
upgrade_daemon(){ upgrade_daemon(){
curl -L -o /usr/local/bin/wings https://github.com/pterodactyl/wings/releases/download/v1.0.0-rc.5/wings_linux_amd64 curl -L -o /usr/local/bin/wings https://github.com/pterodactyl/wings/releases/download/v1.0.0-rc.6/wings_linux_amd64
chmod u+x /usr/local/bin/wings chmod u+x /usr/local/bin/wings
service wings restart service wings restart
output "Your daemon has been updated to version 1.0.0-rc.5." output "Your daemon has been updated to version 1.0.0-rc.6."
output "npm has been updated to the latest version." output "npm has been updated to the latest version."
} }