gluster-web-interface/script/setup.sh

18 lines
353 B
Bash
Raw Normal View History

2016-08-28 07:58:27 +00:00
#! /bin/sh
2016-09-19 03:34:27 +00:00
#version check
if grep centos /etc/*-release; then
echo "os : centos, use yum"
2016-09-28 11:00:28 +00:00
yum install sshpass
2016-09-19 03:34:27 +00:00
elif grep ubuntu /etc/*-release; then
echo "os : ubuntu, use apt-get install"
2016-09-28 11:00:28 +00:00
sudo apt-get install sshpass
2016-09-19 03:34:27 +00:00
fi
2016-08-28 07:58:27 +00:00
# setup
2016-09-11 06:10:38 +00:00
sudo npm install -g bower
sudo --askpass bower install --allow-root
2016-09-11 06:12:38 +00:00
gem install bundler
2016-08-28 07:58:27 +00:00
bundle install
bin/rake db:migrate