From 1f6769466f858da6eec22d7816f616b223d1bde1 Mon Sep 17 00:00:00 2001 From: minkuk Date: Thu, 8 Sep 2016 08:51:24 +0000 Subject: [PATCH] Update --- script/setup.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/script/setup.sh b/script/setup.sh index 85c81c6..cc470ba 100755 --- a/script/setup.sh +++ b/script/setup.sh @@ -7,7 +7,12 @@ bundle install bin/rake db:migrate # make configuration file + CONF_PATH=`pwd`/configure.conf + +if[ ls CONF_PATH | grep configure.conf ]; then +echo "configure.conf exist" +else touch $CONF_PATH echo "project_path=`pwd`" >> $CONF_PATH echo "server_name=gluster" >> $CONF_PATH @@ -15,3 +20,4 @@ echo "host_ip=127.0.0.1" >> $CONF_PATH echo "host_port=" >> $CONF_PATH echo "host_user=root" >> $CONF_PATH echo "host_password=secret" >> $CONF_PATH +fi