You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd(upgrade): Attempt to gain users attention during upgrade (pterodactyl#3678)
* cmd(upgrade): Attempt to gain users attention during upgrade
Changes color of the user and group to gain attention, common issue is having wrong user/group which breaks the panel. Outputs termination message when users spam enter skipping the upgrade wondering why it didn't upgrade.
Reminder to update wings, because users forget it.
* cmd(upgrade): Display wings upgrade documentation link
if (!$this->confirm("Your webserver user has been detected as [{$user}]: is this correct?", true)) {
60
+
if (!$this->confirm("Your webserver user has been detected as <fg=blue>[{$user}]:</> is this correct?", true)) {
61
61
$user = $this->anticipate(
62
62
'Please enter the name of the user running your webserver process. This varies from system to system, but is generally "www-data", "nginx", or "apache".',
if (!$this->confirm("Your webserver group has been detected as [{$group}]: is this correct?", true)) {
76
+
if (!$this->confirm("Your webserver group has been detected as <fg=blue>[{$group}]:</> is this correct?", true)) {
77
77
$group = $this->anticipate(
78
78
'Please enter the name of the group running your webserver process. Normally this is the same as your user.',
79
79
[
@@ -86,6 +86,7 @@ public function handle()
86
86
}
87
87
88
88
if (!$this->confirm('Are you sure you want to run the upgrade process for your Panel?')) {
89
+
$this->warn('Upgrade process terminated by user.');
89
90
return;
90
91
}
91
92
}
@@ -173,8 +174,8 @@ public function handle()
173
174
$this->call('up');
174
175
});
175
176
176
-
$this->newLine();
177
-
$this->info('Finished running upgrade.');
177
+
$this->newLine(2);
178
+
$this->info('Panel has been successfully upgraded. Please ensure you also update any Wings instances: https://pterodactyl.io/wings/1.0/upgrading.html');
0 commit comments