gluster-web-interface/script/setup.sh

18 lines
395 B
Bash
Raw Normal View History

2016-08-28 07:58:27 +00:00
#! /bin/sh
# setup
npm install -g bower
bower install
bundle install
bin/rake db:migrate
# make configuration file
CONF_PATH=`pwd`/configure.conf
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
2016-08-28 07:58:27 +00:00
echo "host_user=root" >> $CONF_PATH
echo "host_password=secret" >> $CONF_PATH