Skip to content

Instantly share code, notes, and snippets.

@jonathaningram
Created August 2, 2012 02:54
Show Gist options
  • Save jonathaningram/3232790 to your computer and use it in GitHub Desktop.
Save jonathaningram/3232790 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Configure logrotate
touch /etc/logrotate.d/example.com
read -r -d '' LOGROTATE_EXAMPLE <<EOF
; Nothing to see here (yet)
EOF
echo "$LOGROTATE_EXAMPLE" | tee /etc/logrotate.d/example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment