Skip to content
Snippets Groups Projects
Commit de55f6af authored by Thomas Müller's avatar Thomas Müller
Browse files

Fix error in stop script

parent fed3994c
Branches
No related tags found
No related merge requests found
......@@ -23,16 +23,18 @@ if [ -z "$thisFolder" ]; then
thisFolder="."
fi;
# stopping and removing docker containers
for container in `cat $thisFolder/dockerContainerCeph.$EXECUTOR_NUMBER.swift`; do
if [ -n "$DEBUG" ]; then
docker logs $container
fi
echo "Stopping and removing docker container $container"
# kills running container and removes it
docker rm -f $container
done;
if [ -e $thisFolder/dockerContainerCeph.$EXECUTOR_NUMBER.swift ]; then
# stopping and removing docker containers
for container in `cat $thisFolder/dockerContainerCeph.$EXECUTOR_NUMBER.swift`; do
if [ -n "$DEBUG" ]; then
docker logs $container
fi
echo "Stopping and removing docker container $container"
# kills running container and removes it
docker rm -f $container
done;
fi;
# cleanup
rm $thisFolder/swift.config.php
rm $thisFolder/dockerContainerCeph.$EXECUTOR_NUMBER.swift
\ No newline at end of file
rm -rf $thisFolder/swift.config.php
rm -rf $thisFolder/dockerContainerCeph.$EXECUTOR_NUMBER.swift
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment