Fixes on deployment
This commit is contained in:
parent
7dd9459ea0
commit
45094714a8
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue