We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 834f777 commit b3b73daCopy full SHA for b3b73da
nodeapp.php
@@ -40,7 +40,7 @@ public function hcpp_runuser( $cmd ) {
40
/**
41
* Check if system has rebooted and restart apps
42
*/
43
- public function hcpp_rebooted( $args ) {
+ public function hcpp_rebooted() {
44
45
// Restart all PM2 apps for all user accounts
46
$users = scandir('/home');
@@ -60,7 +60,10 @@ public function hcpp_rebooted( $args ) {
60
$cmd .= 'export NVM_DIR=/opt/nvm && source /opt/nvm/nvm.sh && pm2 resurrect"' . "\n";
61
}
62
63
- shell_exec( $hcpp->do_action( 'nodeapp_resurrect_apps', $cmd ) );
+ $cmd = $hcpp->do_action( 'nodeapp_resurrect_apps', $cmd );
64
+ if ( trim( $cmd ) != '' ) {
65
+ $hcpp->log( shell_exec( $cmd ) );
66
+ }
67
68
69
0 commit comments