Commit f953fbb7 authored by Martin Klimes (k11m1)'s avatar Martin Klimes (k11m1)
Browse files

fixed path

parent 6f66ba27
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -290,10 +290,11 @@ sub check_cron {


        chomp(my $answer = <STDIN>);
        chomp(my $answer = <STDIN>);
        if ($answer eq 'Y' || $answer eq 'y' || $answer eq '') {
        if ($answer eq 'Y' || $answer eq 'y' || $answer eq '') {
            print "CRON SHALL BE INSTALLED\n";
            print "[INFO] Installing cron.\n";
            copy("cron.pl", "/etc/cron.weekly/fi_printers_cron.pl")
            copy("cron.pl", "/etc/cron.weekly/fi_printers_cron.pl")
                or die "Could not copy cron script\n";
                or die "Could not copy cron script\n";
            chmod 0700, "/etc/cron.weekly/fi_printers_cron.pl"
            chmod 0700, "/etc/cron.weekly/fi_printers_cron.pl";
            print "[INFO] Cron installed\n";
        }
        }
    }
    }
}
}