From f760b0f561c56eeb50bb95f0031f4f8629172b19 Mon Sep 17 00:00:00 2001 From: Lin Yang Date: Wed, 28 Jun 2017 16:46:40 -0700 Subject: [PATCH] Clean valence.conf.sample generated by install_valence.sh Use "mv" instead of "cp" to keep local repository clean. And add it into .gitignore. Change-Id: I0d3e3875a9979903c14843735b068f90a894b61a --- .gitignore | 1 + install_valence.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e38b40e..55d1ec7 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ lib64 # Installer logs pip-log.txt install_valence.log +etc/valence.conf.sample # Unit test / coverage reports .coverage diff --git a/install_valence.sh b/install_valence.sh index 64dbf7e..ddc9d67 100755 --- a/install_valence.sh +++ b/install_valence.sh @@ -45,7 +45,7 @@ if [ ! -d "/etc/valence" ]; then fi chown "$CURR_USER":"$CURR_USER" /etc/valence VALENCE_CONF=/etc/valence/valence.conf -cp "$DIR"/etc/valence.conf.sample /etc/valence/valence.conf +mv "$DIR"/etc/valence.conf.sample "$VALENCE_CONF" sudo sed -i "s/#debug\s*=.*/debug=true/" $VALENCE_CONF sudo sed -i "s/#log_level\s*=.*/log_level=debug/" $VALENCE_CONF