Show message if at is missing
authorJamie Cameron <jcameron@webmin.com>
Mon, 18 Aug 2008 18:45:02 +0000 (18:45 +0000)
committerJamie Cameron <jcameron@webmin.com>
Mon, 18 Aug 2008 18:45:02 +0000 (18:45 +0000)
at/index.cgi
at/lang/en

index 373d1e2..4331593 100755 (executable)
@@ -11,6 +11,12 @@ use POSIX;
 &ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1);
 ReadParse();
 
+# Check if at is installed
+if (!&has_command("at")) {
+       &ui_print_endpage(&text('index_noat', "<tt>at</tt>",
+                               "../config.cgi?$module_name"));
+       }
+
 # Show list of existing jobs
 @jobs = &list_atjobs();
 @jobs = grep { &can_edit_user(\%access, $_->{'user'}) } @jobs;
index ca5694b..8c7c04f 100644 (file)
@@ -17,6 +17,7 @@ index_amode0=All Unix users
 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.
 
 edit_title=Scheduled Command
 edit_cmd=Full script to execute