diff --git a/cron.pl b/cron.pl index 85c47017e2da07ffe46599e12973951880d5b574..4cf9999205c2439eea87306fa0a65d149d1095d9 100755 --- a/cron.pl +++ b/cron.pl @@ -25,7 +25,7 @@ my @files = glob('/etc/cups/ppd/*fi.muni.ppd'); for my $item (@files) { print "current $item\n"; $item =~ s/\/etc\/cups\/ppd\///; - $item =~ s/\.fi\.muni\.ppd//; + $item =~ s/\.fi\.muni\.cz\.ppd//; } for my $printer (@files) { diff --git a/install.pl b/install.pl index 20cb7e7afcd0d4244be7db2c007cd083212a0add..f2c2de3bbe2876aa4c846394f30eb7d532a437c1 100755 --- a/install.pl +++ b/install.pl @@ -161,7 +161,7 @@ sub install_printer { my $url = get_url($printer_name); my $command = qq(lpadmin \\ - -p "${printer_name}.fi.muni" \\ + -p "${printer_name}.fi.muni.cz" \\ -D "${printer_name} (FI MUNI)" \\ -L "$printers->{$printer_name}->{'location'}" \\ -E \\ @@ -189,7 +189,7 @@ sub update_ppd { my ($printer_name) = @_; my $command = qq(lpadmin \\ - -p "${printer_name}.fi.muni" \\ + -p "${printer_name}.fi.muni.cz" \\ -P "ppds/${printer_name}.ppd" ); system($command);