gluster-web-interface/script/setup.sh
2016-09-23 18:28:53 +09:00

16 lines
304 B
Bash
Executable File

#! /bin/sh
#version check
if grep centos /etc/*-release; then
echo "os : centos, use yum"
elif grep ubuntu /etc/*-release; then
echo "os : ubuntu, use apt-get install"
fi
# setup
sudo npm install -g bower
sudo --askpass bower install --allow-root
gem install bundler
bundle install
bin/rake db:migrate