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.
19 lines
364 B
19 lines
364 B
#!/bin/bash |
|
if [[ $(whoami) != 'root' ]]; then |
|
echo 'Must be run with sudo.' |
|
exit 1 |
|
fi |
|
|
|
if [[ $# != 1 ]]; then |
|
echo 'Specify rpm file to deploy' |
|
exit 1 |
|
else: |
|
package=${1} |
|
fi |
|
|
|
yum update -y ${package} |
|
su - entrydns -c 'bundle exec rake db:migrate RAILS_ENV=production' |
|
|
|
systemctl reload unicorn-entrydns.service |
|
|
|
systemctl status unicorn-entrydns.service
|
|
|