You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
322 B
16 lines
322 B
11 years ago
|
#!/bin/bash
|
||
|
|
||
|
server='master0.entrydns.net'
|
||
|
|
||
|
if [[ $# != 1 ]]; then
|
||
|
echo 'Specify rpm file to deploy'
|
||
|
exit 1
|
||
|
else:
|
||
|
package=${1}
|
||
|
fi
|
||
|
|
||
|
scp ${package} ${server}:/tmp
|
||
|
|
||
|
ssh -t ${server} "sudo yum update -y /tmp/${package}"
|
||
|
ssh -t ${server} "su - entrydns -c 'cd ${HOME} && bundle exec rake db:migrate RAILS_ENV=production'
|