Skip to content

Commit

Permalink
Merge pull request #96 from influxdb/revert-87-logrotation
Browse files Browse the repository at this point in the history
Revert "Add log rotation to /etc/logrotate.d for deb and rpm packages"
  • Loading branch information
sparrc committed Aug 6, 2015
2 parents 96014f8 + 5dd1639 commit d9b2082
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ AWS_FILE=~/aws.conf
INSTALL_ROOT_DIR=/opt/telegraf
TELEGRAF_LOG_DIR=/var/log/telegraf
CONFIG_ROOT_DIR=/etc/opt/telegraf
LOGROTATE_DIR=/etc/logrotate.d

SAMPLE_CONFIGURATION=etc/config.sample.toml
LOGROTATE_CONFIGURATION=etc/logrotate.d/telegraf
INITD_SCRIPT=scripts/init.sh

TMP_WORK_DIR=`mktemp -d`
Expand Down Expand Up @@ -146,11 +144,6 @@ make_dir_tree() {
echo "Failed to create configuration directory -- aborting."
cleanup_exit 1
fi
mkdir -p $work_dir/$LOGROTATE_DIR
if [ $? -ne 0 ]; then
echo "Failed to create configuration directory -- aborting."
cleanup_exit 1
fi
}


Expand Down Expand Up @@ -258,12 +251,6 @@ if [ $? -ne 0 ]; then
cleanup_exit 1
fi

cp $LOGROTATE_CONFIGURATION $TMP_WORK_DIR/$LOGROTATE_DIR/telegraf.conf
if [ $? -ne 0 ]; then
echo "Failed to copy $LOGROTATE_CONFIGURATION to packaging directory -- aborting."
cleanup_exit 1
fi

generate_postinstall_script $VERSION

###########################################################################
Expand Down

0 comments on commit d9b2082

Please sign in to comment.