From 15194af365397f74fef79271c87441c412e0e5ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Klime=C5=A1?= <xklimes5@fi.muni.cz> Date: Fri, 5 Nov 2021 10:28:42 +0100 Subject: [PATCH] rename PPDs --- cron.pl | 2 +- install.pl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cron.pl b/cron.pl index 85c4701..4cf9999 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 20cb7e7..f2c2de3 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); -- GitLab