From b89af7fc4c6635a76e9298ac2b1a64c7315e4363 Mon Sep 17 00:00:00 2001 From: swaggboi Date: Sat, 6 Mar 2021 20:24:16 -0500 Subject: [PATCH] Try full path for `fortune` command --- www-swagg.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www-swagg.pl b/www-swagg.pl index f36adc7..db20fa5 100755 --- a/www-swagg.pl +++ b/www-swagg.pl @@ -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