From b19420fd04df8bebb1cf2bf1f0b5bde4ce272018 Mon Sep 17 00:00:00 2001 From: Anusha Ramineni Date: Tue, 2 May 2017 14:25:53 +0530 Subject: [PATCH] Move all the config items to etc folder Currently the service startup files are placed in doc folder. Moving the same to etc for better maintenance of all the conf files. Change-Id: I16be81b161263d7f2c446fd31cf92170f1091f60 --- {doc/source/init => etc/services-startup-conf}/etcd.conf | 0 {doc/source/init => etc/services-startup-conf}/valence.conf | 0 install_valence.sh | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename {doc/source/init => etc/services-startup-conf}/etcd.conf (100%) rename {doc/source/init => etc/services-startup-conf}/valence.conf (100%) diff --git a/doc/source/init/etcd.conf b/etc/services-startup-conf/etcd.conf similarity index 100% rename from doc/source/init/etcd.conf rename to etc/services-startup-conf/etcd.conf diff --git a/doc/source/init/valence.conf b/etc/services-startup-conf/valence.conf similarity index 100% rename from doc/source/init/valence.conf rename to etc/services-startup-conf/valence.conf diff --git a/install_valence.sh b/install_valence.sh index 1e4d105..08d76fa 100755 --- a/install_valence.sh +++ b/install_valence.sh @@ -25,7 +25,7 @@ echo "Detected PYTHON HOME: $PYHOME" >> $install_log # Copy the config files echo "Setting up valence config" >> $install_log -sed "s/\${CHUID}/$CURR_USER/" "$DIR"/doc/source/init/valence.conf > /tmp/valence.conf +sed "s/\${CHUID}/$CURR_USER/" "$DIR"/etc/services-startup-conf/valence.conf > /tmp/valence.conf # Use alternate sed delimiter because path will have / sed -i "s#PYHOME#$PYHOME#" /tmp/valence.conf mv /tmp/valence.conf /etc/init/valence.conf @@ -70,7 +70,7 @@ mkdir -p /var/etcd && tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /var/ chown "$CURR_USER":"$CURR_USER" /var/etcd mv /var/etcd/etcd /usr/local/bin/etcd && mv /var/etcd/etcdctl /usr/local/bin/etcdctl -sed "s/\${CHUID}/$CURR_USER/" "$DIR"/doc/source/init/etcd.conf > /etc/init/etcd.conf +sed "s/\${CHUID}/$CURR_USER/" "$DIR"/etc/services-startup-conf/etcd.conf > /etc/init/etcd.conf echo "Starting etcd database" >> $install_log service etcd start