Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
unix
FI printers over Samba on Linux
Commits
5b7baf25
Commit
5b7baf25
authored
Nov 05, 2021
by
Tomáš Szaniszlo
Committed by
Tomáš Szaniszlo
Nov 05, 2021
Browse files
install: a bit more consistency for the messages
parent
cfd7db05
Changes
1
Hide whitespace changes
Inline
Side-by-side
install.pl
View file @
5b7baf25
...
...
@@ -194,7 +194,7 @@ sub update_ppd {
system
(
$command
);
if
(
$?
!=
0
)
{
die
"
[ERROR] Could not update the
ppd
via lpadmin
";
die
"
[ERROR] Could not update the
PPD
via lpadmin
";
}
return
;
...
...
@@ -301,12 +301,12 @@ sub check_cron {
chomp
(
my
$answer
=
<
STDIN
>
);
if
(
$answer
eq
'
Y
'
||
$answer
eq
'
y
'
||
$answer
eq
'')
{
print
"
[INFO] Installing cron.
\n
";
say
"
[INFO] Installing cron.
..
";
copy
("
$RealBin
/cron.pl
",
"
/etc/cron.weekly/fi_printers_cron
")
or
die
"
[ERROR] Could not copy cron script
\n
";
chmod
0700
,
"
/etc/cron.weekly/fi_printers_cron
";
say
"
[INFO] Cron installed
";
say
"
[INFO] Cron installed
.
";
}
}
else
{
say
"
[INFO] Cron is already installed.
";
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment