浏览代码

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 查看文件



# ##### Add users to LDAP ###### # # ##### 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 #echo Host=$host
if [ -z $host ]; then if [ -z $host ]; then
echo "No host found!"; echo "No host found!";

+ 2
- 2
deploy.sh 查看文件

echo "Qué me estás container?!"; echo "Qué me estás container?!";
continue; continue;
fi 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 - $?)); NC_UP=$((1 - $?));
done; done;



正在加载...
取消
保存