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
This commit is contained in:
Lin Yang 2017-06-28 16:46:40 -07:00
parent 577474c9c0
commit f760b0f561
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -21,6 +21,7 @@ lib64
# Installer logs
pip-log.txt
install_valence.log
etc/valence.conf.sample
# Unit test / coverage reports
.coverage

View File

@ -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