add --config-files option to fpm command

This is to avoid overwritten of config file when update package.

Signed-off-by: Kai Zhang <zhangk1985@gmail.com>
pull/1789/head
Kai Zhang 2015-02-28 10:54:12 +08:00
parent 40479784e2
commit 43fc102b8e
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ else
debian_package=influxdb_${VERSION}_amd64.deb debian_package=influxdb_${VERSION}_amd64.deb
fi fi
COMMON_FPM_ARGS="-C $TMP_WORK_DIR --vendor $VENDOR --url $URL --license $LICENSE --maintainer $MAINTAINER --after-install $POST_INSTALL_PATH --name influxdb --version $VERSION ." COMMON_FPM_ARGS="-C $TMP_WORK_DIR --vendor $VENDOR --url $URL --license $LICENSE --maintainer $MAINTAINER --after-install $POST_INSTALL_PATH --name influxdb --version $VERSION --config-files $CONFIG_ROOT_DIR ."
$rpm_args fpm -s dir -t rpm --description "$DESCRIPTION" $COMMON_FPM_ARGS $rpm_args fpm -s dir -t rpm --description "$DESCRIPTION" $COMMON_FPM_ARGS
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Failed to create RPM package -- aborting." echo "Failed to create RPM package -- aborting."