Skip to content

Commit

Permalink
[docker-teamd]: Check if teamd directory is not empty
Browse files Browse the repository at this point in the history
Signed-off-by: marian-pritsak <[email protected]>
  • Loading branch information
marian-pritsak committed Apr 27, 2017
1 parent 65bffb6 commit b1a12cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dockers/docker-teamd/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
TEAMD_CONF_PATH=/etc/teamd

function start_app {
if [ -d $TEAMD_CONF_PATH ]; then
if [ "$(ls $TEAMD_CONF_PATH)" ]; then
for f in $TEAMD_CONF_PATH/*; do
teamd -f $f -d
done
Expand All @@ -14,7 +14,7 @@ function start_app {
}

function clean_up {
if [ -d $TEAMD_CONF_PATH ]; then
if [ "$(ls $TEAMD_CONF_PATH)" ]; then
for f in $TEAMD_CONF_PATH/*; do
teamd -f $f -k
done
Expand Down

0 comments on commit b1a12cb

Please sign in to comment.