Issue #4446: Fixing logrotate config file.

This issue switches from "cp" to "install" for the logrotate file,
with the option to specify the mode.  Also uses the name "influxdb"
instead of "influxd".
pull/4447/head
Sean Reifschneider 2015-10-14 11:15:48 -06:00
parent 6ce003c025
commit cb85b9db25
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ if [ $? -ne 0 ]; then
cleanup_exit 1
fi
cp $LOGROTATE $TMP_WORK_DIR/$LOGROTATE_DIR/influxd
install -m 644 $LOGROTATE $TMP_WORK_DIR/$LOGROTATE_DIR/influxdb
if [ $? -ne 0 ]; then
echo "Failed to copy logrotate configuration to packaging directory -- aborting."
cleanup_exit 1