Hi everyone!
I have a question for cPanel staff/developers: is the any way to define default shell (bash, sh, jaishell, etc.) for cPanel accounts cronjobs? I've found the following code in cPanel "Cron" module (/usr/local/cpanel/Cpanel/Cron/Edit.pm):
So please advise, can I use /var/cpanel/crontabshell file to specify default shell binary for cronjobs? Or maybe there is another way to do this.
Thanks.
I have a question for cPanel staff/developers: is the any way to define default shell (bash, sh, jaishell, etc.) for cPanel accounts cronjobs? I've found the following code in cPanel "Cron" module (/usr/local/cpanel/Cpanel/Cron/Edit.pm):
Code:
our $CRONTAB_SHELL_FILE = '/var/cpanel/crontabshell';
Code:
# Allow admins to specify a default SHELL setting
if ( -e $CRONTAB_SHELL_FILE ) {
my $cron_shell_ref = Cpanel::Config::LoadConfig::loadConfig($CRONTAB_SHELL_FILE);
$cronshell = $cron_shell_ref->{'SHELL'};
}
So please advise, can I use /var/cpanel/crontabshell file to specify default shell binary for cronjobs? Or maybe there is another way to do this.
Thanks.