File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/with-contenv bash
22
33AUTO_GEN=" "
4+ ENABLED_CONTAINERS=$( docker ps -f " label=swag=enable" --format " {{.Names}}" && docker ps -a -f " status=exited" -f " label=swag=enable" -f " label=swag_ondemand=enable" --format " {{.Names}}" )
45# figure out which containers to generate confs for or which confs to remove
56if [ ! -f /auto-proxy/enabled_containers ]; then
6- docker ps --filter " label=swag=enable " --format " {{.Names} }" > /auto-proxy/enabled_containers
7+ echo " ${ENABLED_CONTAINERS }" > /auto-proxy/enabled_containers
78 AUTO_GEN=$( cat /auto-proxy/enabled_containers)
89else
9- ENABLED_CONTAINERS=$( docker ps --filter " label=swag=enable" --format " {{.Names}}" )
1010 for CONTAINER in ${ENABLED_CONTAINERS} ; do
1111 if [ ! -f " /auto-proxy/${CONTAINER} .conf" ]; then
1212 echo " **** New container ${CONTAINER} detected, will generate new conf. ****"
You can’t perform that action at this time.
0 commit comments