Commit 413f1e3b authored by Martin Klimeš's avatar Martin Klimeš
Browse files

cron: fix cron installation

parent d23e2a99
......@@ -14,12 +14,13 @@ if (-d "/opt/fi-printers") {
else
{
my $output = `git clone https://gitlab.fi.muni.cz/unix/fi-printers.git /opt/fi-printers`;
chdir "/opt/fi-printers";
}
# copy cron.pl into weekly cron
copy("/opt/fi-printers/cron.pl", "/etc/cron.weekly/fi_printers_cron");
my @files = glob( '/etc/cups/ppd/*fi.muni.ppd' );
my @files = glob('/etc/cups/ppd/*fi.muni.ppd');
for my $item (@files) {
print "current $item\n";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment