aboutsummaryrefslogtreecommitdiffstats
path: root/tests/objectstore
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2015-10-19 17:18:57 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2015-10-19 17:18:57 +0200
commit2895c912910a5a24ce6fae5d487ff8136c7a5042 (patch)
treed661a84df7c55b4260d9efce06882f8b98364ca9 /tests/objectstore
parentc530c9c322d9475fbbeccce834ba06083d7ae36a (diff)
parentde55f6afbf1eb4bf858ff61e07c6fa475269bea1 (diff)
downloadnextcloud-server-2895c912910a5a24ce6fae5d487ff8136c7a5042.tar.gz
nextcloud-server-2895c912910a5a24ce6fae5d487ff8136c7a5042.zip
Merge pull request #17641 from owncloud/fix_objectstore_rename
don't move files in cache twice, fixes renaming for objectstores
Diffstat (limited to 'tests/objectstore')
-rwxr-xr-xtests/objectstore/stop-swift-ceph.sh24
1 files changed, 13 insertions, 11 deletions
diff --git a/tests/objectstore/stop-swift-ceph.sh b/tests/objectstore/stop-swift-ceph.sh
index fcf5fdfdcd7..400db8925e9 100755
--- a/tests/objectstore/stop-swift-ceph.sh
+++ b/tests/objectstore/stop-swift-ceph.sh
@@ -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