From 45094714a84b39ddc1041cc1287318505b7c7e87 Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Fri, 2 Oct 2015 12:23:18 +0000 Subject: [PATCH] Fixes on deployment --- scripts/containers/deploy.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/containers/deploy.sh b/scripts/containers/deploy.sh index 0a4b1b64..6f9b0471 100644 --- a/scripts/containers/deploy.sh +++ b/scripts/containers/deploy.sh @@ -6,6 +6,16 @@ set -ue # bash <( curl https://raw.githubusercontent.com/glic3rinu/django-orchestra/master/scripts/containers/deploy.sh ) [--noinput username] function main () { + run_ () { + echo " ${bold}\$ ${@}${normal}" + ${@} + } + + surun_ () { + echo " ${bold}\$ su $user -c \"${@}\"${normal}" + su $user -c "${@}" + } + noinput='' user=$USER if [[ $# -eq 2 ]]; then @@ -42,16 +52,6 @@ function main () { sudo true fi - run_ () { - echo " ${bold}\$ ${@}${normal}" - ${@} - } - - surun_ () { - echo " ${bold}\$ su $user -c \"${@}\"${normal}" - su $user -c "${@}" - } - bold=$(tput -T ${TERM:-xterm} bold) normal=$(tput -T ${TERM:-xterm} sgr0)