Fail more gracefully

This commit is contained in:
Jamie Cameron
2020-08-14 16:39:38 -07:00
parent 301b994855
commit cc27b1cdc8
2 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,11 @@ if (!&has_command("at")) {
"../config.cgi?$module_name"));
}
# Check if OS is supported
if (!defined(&list_atjobs)) {
&ui_print_endpage(&text('index_nostyle', "../config.cgi?$module_name"));
}
# Show list of existing jobs
my @jobs = &list_atjobs();
@jobs = grep { &can_edit_user(\%access, $_->{'user'}) } @jobs;

View File

@ -19,6 +19,7 @@ index_amode1=Only listed users ..
index_amode2=All except listed users ..
index_delete=Cancel Selected Commands
index_noat=The $1 command was not found on your system - maybe it is not installed, or not available for your operating system.
index_nostyle=Webmin does not know how to manage schedule commands on this operating system.
edit_title=Scheduled Command
edit_cmd=Full script to execute