From c55be00c1eb252a7fcaaf16fd835a888904ab28c Mon Sep 17 00:00:00 2001 From: Vaidas Jablonskis Date: Mon, 20 Jan 2014 20:45:53 +0000 Subject: [PATCH] scripts: update deploy script --- script/deploy.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/script/deploy.sh b/script/deploy.sh index 3721790..09e5ceb 100755 --- a/script/deploy.sh +++ b/script/deploy.sh @@ -7,13 +7,12 @@ 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' +sudo yum update -y $1 +su - entrydns -s /bin/bash -c 'bundle exec rake db:migrate RAILS_ENV=production' systemctl reload unicorn-entrydns.service systemctl status unicorn-entrydns.service +