1 |
Hi All, |
2 |
|
3 |
The chrony installed logrotate script keeps erroring out: |
4 |
======================================================== |
5 |
logrotate_script: line 5: warning: here-document at line 2 delimited by end- |
6 |
of-file (wanted `EOF') |
7 |
Unrecognized command |
8 |
======================================================== |
9 |
|
10 |
This is the script: |
11 |
======================================================== |
12 |
/var/log/chrony/*.log { |
13 |
sharedscripts |
14 |
postrotate |
15 |
PASSWORD=`awk '$1 ~ /^1$/ {print $2; exit}' |
16 |
/etc/chrony/chrony.keys` |
17 |
cat << EOF | /usr/bin/chronyc | sed '/^200 OK$/d' |
18 |
password $PASSWORD |
19 |
cyclelogs |
20 |
EOF |
21 |
endscript |
22 |
} |
23 |
======================================================== |
24 |
|
25 |
I do not understand the error. Is it telling me to add backticks? Where? |
26 |
-- |
27 |
Regards, |
28 |
Mick |