gluster-web-interface/script/setup.sh
Youngkyun Kim b2c7e8a4bb update
2016-09-08 05:20:28 -04:00

25 lines
498 B
Bash
Executable File

#! /bin/sh
# setup
npm install -g bower
bower install
bundle install
bin/rake db:migrate
# make configuration file
CONF_FOLDER=`pwd`
CONF_PATH=`pwd`/configure.conf
if ls $CONF_FOLDER | grep configure.conf; then
echo "configure.conf exist"
else
touch $CONF_PATH
echo "project_path=`pwd`" >> $CONF_PATH
echo "server_name=gluster" >> $CONF_PATH
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