diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-10-01 11:27:33 +0200 |
---|---|---|
committer | Eivind Uggedal <eivind@uggedal.com> | 2015-10-01 14:46:53 +0000 |
commit | d4d4849abeafb78641d6d2259d15bf9df54e8b47 (patch) | |
tree | 0a3df14c9c27013ca75ce80245958d8eb5e499d5 /main/chrony/chrony.logrotate | |
parent | 8578a7764dd634ec19f42b345e42c9d64be15f12 (diff) | |
download | aports-d4d4849abeafb78641d6d2259d15bf9df54e8b47.tar.bz2 aports-d4d4849abeafb78641d6d2259d15bf9df54e8b47.tar.xz |
main/chrony: fix syntax error in logrotate script
Diffstat (limited to 'main/chrony/chrony.logrotate')
-rw-r--r-- | main/chrony/chrony.logrotate | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/main/chrony/chrony.logrotate b/main/chrony/chrony.logrotate index 1b7b589a9f..4461a3063d 100644 --- a/main/chrony/chrony.logrotate +++ b/main/chrony/chrony.logrotate @@ -1,11 +1,12 @@ -/var/log/chrony/*.log +/var/log/chrony/*.log { + missingok sharedscripts postrotate - PASSWORD=`awk '$1 ~ /^1$/ {print $2; exit}' /etc/chrony/chrony.keys` - cat << EOF | /usr/bin/chronyc | sed '/^200 OK$/d' - password $PASSWORD - cyclelogs - EOF - endscript + PASSWORD=`awk '$1 ~ /^1$/ {print $2; exit}' /etc/chrony/chrony.keys` + cat << EOF | /usr/bin/chronyc | sed '/^200 OK$/d' + password $PASSWORD + cyclelogs +EOF + endscript } |