Fix error in stop script
This commit is contained in:
parent
fed3994cdb
commit
de55f6afbf
|
@ -23,16 +23,18 @@ if [ -z "$thisFolder" ]; then
|
||||||
thisFolder="."
|
thisFolder="."
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
# stopping and removing docker containers
|
if [ -e $thisFolder/dockerContainerCeph.$EXECUTOR_NUMBER.swift ]; then
|
||||||
for container in `cat $thisFolder/dockerContainerCeph.$EXECUTOR_NUMBER.swift`; do
|
# stopping and removing docker containers
|
||||||
if [ -n "$DEBUG" ]; then
|
for container in `cat $thisFolder/dockerContainerCeph.$EXECUTOR_NUMBER.swift`; do
|
||||||
docker logs $container
|
if [ -n "$DEBUG" ]; then
|
||||||
fi
|
docker logs $container
|
||||||
echo "Stopping and removing docker container $container"
|
fi
|
||||||
# kills running container and removes it
|
echo "Stopping and removing docker container $container"
|
||||||
docker rm -f $container
|
# kills running container and removes it
|
||||||
done;
|
docker rm -f $container
|
||||||
|
done;
|
||||||
|
fi;
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
rm $thisFolder/swift.config.php
|
rm -rf $thisFolder/swift.config.php
|
||||||
rm $thisFolder/dockerContainerCeph.$EXECUTOR_NUMBER.swift
|
rm -rf $thisFolder/dockerContainerCeph.$EXECUTOR_NUMBER.swift
|
||||||
|
|
Loading…
Reference in New Issue