소스 검색

Minor fixes to bash scripts

Changes to be committed:
	modified:   add_users.sh
	modified:   deploy.sh
multi_domain
ßingen 7 년 전
부모
커밋
de5b343354
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +1
    -1
      add_users.sh
  2. +2
    -2
      deploy.sh

+ 1
- 1
add_users.sh 파일 보기

@@ -9,7 +9,7 @@ fi

# ##### Add users to LDAP ###### #

host=$(docker stack ps ${STACK_NAME} | grep Running | grep openldap | awk '{ print $4 }')
host=$(docker stack ps ${STACK_NAME} | grep -v Shutdown | grep Running | grep openldap | awk '{ print $4 }')
#echo Host=$host
if [ -z $host ]; then
echo "No host found!";

+ 2
- 2
deploy.sh 파일 보기

@@ -55,8 +55,8 @@ while [ $NC_UP -eq 0 ]; do
echo "Qué me estás container?!";
continue;
fi
NC_IP=$(ssh $host "docker exec ${container} sh -c 'ifconfig eth1' | grep 'inet ' | cut -d':' -f 2 | cut -d' ' -f 1")
curl http://${NC_IP}/index.nginx-debian.html 2>/dev/null | grep title | grep Welcome 1>/dev/null;
#NC_IP=$(ssh $host "docker exec ${container} sh -c 'ifconfig eth1' | grep 'inet ' | cut -d':' -f 2 | cut -d' ' -f 1")
curl http://${host}/index.nginx-debian.html 2>/dev/null | grep title | grep Welcome 1>/dev/null;
NC_UP=$((1 - $?));
done;


Loading…
취소
저장