Bug #31
closedFix cronolog script on Debian
0%
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
Updated by Florian Effenberger over 10 years ago
- Assignee changed from 18 to Alexander Werner
Updated by Florian Effenberger over 10 years ago
- Assignee changed from Alexander Werner to 18
Updated by Florian Effenberger over 10 years ago
- Assignee set to Alexander Werner
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
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
Updated by Alexander Werner about 10 years ago
- Status changed from Resolved to Closed