FAQ | This is a LIVE service | Changelog

Commit dd28c9af authored by Dr Adam Thorn's avatar Dr Adam Thorn
Browse files

Cease trying to configure dateext logrotation in prepare script

On servers we configure this via ansible.

On workstations it is not having the desired effect because the stock
logrotate.conf includes the line ...

and so the simple grep thinks it's already configured! I'll add an
ansible task in due course to actually configure this.
parent 491ba4b1
......@@ -24,8 +24,6 @@ if $SSH root@$SERVER [ /var/lib/dpkg/status -nt /var/adm/backup/package-files ]
FILELIST=\`tempfile\`
CONFLIST=\`tempfile\`
mkdir -p /var/adm/backup
# Make logrotate use datestamps
if ! grep -q dateext /etc/logrotate.conf ; then sed -i 's/^include/dateext\ninclude/' /etc/logrotate.conf ; fi
# Which packages are installed?
dpkg --get-selections | awk ' { print \$1 ; } ' >/var/adm/backup/packages
cat /var/lib/dpkg/info/*.list | while read F ; do [ -f \"\$F\" ] && echo \"\$F\" ; done | sort > \$FILELIST
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment