Project

General

Profile

Actions

Bug #31

closed

Fix cronolog script on Debian

Added by Florian Effenberger over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Start date:
2013-11-23
Due date:
2014-02-11
% Done:

0%

Tags:
Salt

Description

Error message:
/etc/cron.daily/9999cronolog:
/etc/cron.daily/9999cronolog: line 2: syntax error near unexpected token `('
/etc/cron.daily/9999cronolog: line 2: `ls -1 /var/log/apache2/*/*/*/*.log | grep -v \$(date "+%Y%m%d") | xargs --no-run-if-empty bzip2'
run-parts: /etc/cron.daily/9999cronolog exited with return code 2
/etc/cron.daily/9999zombie:
/etc/cron.daily/9999zombie: line 2: /usr/bin/landscape-sysinfo: No such file or directory

Docu snippet:
cat > /etc/cron.daily/9999cronolog << "EOF"
#!/bin/bash
find /var/log/apache2 -mindepth 3 -type f -name \*log ! -name \*$(date "+%Y%m%d")\* -print0 | xargs -0 --no-run-if-empty bzip2
EOF

Actions #1

Updated by Florian Effenberger over 10 years ago

  • Assignee changed from 18 to Alexander Werner
Actions #2

Updated by Florian Effenberger over 10 years ago

  • Assignee changed from Alexander Werner to 18
Actions #3

Updated by Florian Effenberger over 10 years ago

  • Assignee set to Alexander Werner
Actions #4

Updated by Florian Effenberger about 10 years ago

Is this fixed already?

Actions #5

Updated by Florian Effenberger about 10 years ago

To elaborate a bit further: The script in Salt seems to be broken, the above one is the correct line

Actions #6

Updated by Alexander Werner about 10 years ago

  • Due date set to 2014-02-11
  • Status changed from New to Resolved
  • Tags Salt added

Updated cronolog script in salt

Actions #7

Updated by Alexander Werner about 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF