Server : Apache System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64 User : nobody ( 99) PHP Version : 8.1.23 Disable Function : NONE Directory : /usr/local/bin/ |
#!/usr/bin/perl use strict; use warnings; my %mod = ( ruby => "bundler", python => "pip", nodejs => "npm", ); if ( $0 =~ m/ea-passenger-runtime_(.*)-is-not-installed/ ) { my $missing = $1; if ( !exists $mod{$missing} ) { die "$0 is misnamed\n"; # juust in case } print <<"MSG"; !!!! “$missing” is not installed !! Applications using it will not function until you: 1. Install $missing and $mod{$missing} 2. Run `/usr/local/bin/ea-passenger-runtime-applications-settings --fix` MSG } else { die "$0 is misnamed\n"; # juust in case } exit 0