Try full path for fortune command

This commit is contained in:
swagg boi 2021-03-06 20:24:16 -05:00
parent f8f919dc37
commit b89af7fc4c

View file

@ -12,7 +12,7 @@ use Number::Format qw{format_number};
# The main landing page; pass in the output of the fortune command
get '/' => sub {
my ($c) = @_;
my $fortune = `fortune` || "huh?? no fortune for u\n";
my $fortune = `/usr/games/fortune` || `fortune` || "huh??\n";
my ($count, %serverSide);
# Visitor counter ala the ol' count.cgi script