From 43fc102b8e79d4f2ed112b4e983d15a72005563d Mon Sep 17 00:00:00 2001 From: Kai Zhang Date: Sat, 28 Feb 2015 10:54:12 +0800 Subject: [PATCH] add --config-files option to fpm command This is to avoid overwritten of config file when update package. Signed-off-by: Kai Zhang --- package.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.sh b/package.sh index f9fe1f09007..48e4b8898c7 100755 --- a/package.sh +++ b/package.sh @@ -262,7 +262,7 @@ else debian_package=influxdb_${VERSION}_amd64.deb 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 if [ $? -ne 0 ]; then echo "Failed to create RPM package -- aborting."