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
413f1e3b
Commit
413f1e3b
authored
Nov 01, 2021
by
Martin Klimeš
Browse files
cron: fix cron installation
parent
d23e2a99
Changes
1
Hide whitespace changes
Inline
Side-by-side
cron.pl
View file @
413f1e3b
...
...
@@ -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
";
...
...
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