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