panel icon indicating copy to clipboard operation
panel copied to clipboard

Update Script For Ptero Panel

Open tmunsch opened this issue 2 years ago • 5 comments

Pterodactyl Panel Update Script

Compatibility: Pterodactyl 1.7+

Usage

cd /var/www/pterodactyl
chmod +x update
./update

Functionality

  • Checks for proper PHP and Composer versions
  • Set's Panel in Maintenance Mode
  • Downloads Updated files for Latest Release
  • Updates Dependencies
  • Clears Cache for Views and Routes
  • Performs Database Updates
  • Sets the proper file permissions based on OS and Web Server Type
  • Restarts Worker Queue
  • Set's Application to Live

Concerns

  • Runs completely Unattended with no prompts.... is a feature?
  • Bypasses Yes/No Prompts for Running Composer as Root
  • Colors Might be too much

Proposed Future Update/Functionality

  • Switch commands to bypass certain steps ( ex: ./update -nodb -nophpcheck -nocacheclear

tmunsch avatar Jun 02 '22 16:06 tmunsch

This has been attempted before in #4103. However, this is already possible with php artisan p:upgrade

FoksVHox avatar Jun 02 '22 17:06 FoksVHox

This has been attempted before in #4103. However, this is already possible with php artisan p:upgrade

Am I right in saying that the upgrader is set to be removed, as it’s not working at the moment and replaced with a solution like this though

LucaTanks avatar Jun 02 '22 17:06 LucaTanks

This has been attempted before in #4103. However, this is already possible with php artisan p:upgrade

https://github.com/pterodactyl/panel/pull/4103#issuecomment-1141524522

This PR here and #4103 are differnt things ;)

gOOvER avatar Jun 02 '22 17:06 gOOvER

Pretty sure this is quite unlikely to be added as it isn't an Artisan command, eg: php artisan p:[command name].

camw0 avatar Jun 02 '22 17:06 camw0

Dane has said he would make a bash script for this, I'm guessing the PR is to do that for him

LucaTanks avatar Jun 02 '22 17:06 LucaTanks