Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

testserver: fix seafile servers messing up _connect string

Nick Craig-Wood7ce67347fbd1
diff --git a/fstest/testserver/init.d/TestSeafile b/fstest/testserver/init.d/TestSeafile
index c18a1d0db..553e9d03f 100755
--- a/fstest/testserver/init.d/TestSeafile
+++ b/fstest/testserver/init.d/TestSeafile
@@ -43,7 +43,7 @@ start() {
| sed 's/^{"token":"\(.*\)"}$/\1/'`
# create default library
- curl -X POST -H "Authorization: Token ${TOKEN}" "http://${SEAFILE_IP}:${SEAFILE_PORT}/api2/default-repo/"
+ curl --silent -o /dev/null -X POST -H "Authorization: Token ${TOKEN}" "http://${SEAFILE_IP}:${SEAFILE_PORT}/api2/default-repo/"
echo _connect=${SEAFILE_IP}:${SEAFILE_PORT}
echo type=seafile
diff --git a/fstest/testserver/init.d/TestSeafileEncrypted b/fstest/testserver/init.d/TestSeafileEncrypted
index 0493e9082..dd4b6bc73 100755
--- a/fstest/testserver/init.d/TestSeafileEncrypted
+++ b/fstest/testserver/init.d/TestSeafileEncrypted
@@ -35,7 +35,7 @@ start() {
| sed 's/^{"token":"\(.*\)"}$/\1/'`
# create encrypted library
- curl -X POST -d "name=${TEST_LIBRARY}&passwd=${TEST_LIBRARY_PASSWORD}" -H "Authorization: Token ${TOKEN}" "http://${SEAFILE_IP}:${SEAFILE_PORT}/api2/repos/"
+ curl --silent -o /dev/null -X POST -d "name=${TEST_LIBRARY}&passwd=${TEST_LIBRARY_PASSWORD}" -H "Authorization: Token ${TOKEN}" "http://${SEAFILE_IP}:${SEAFILE_PORT}/api2/repos/"
echo _connect=${SEAFILE_IP}:${SEAFILE_PORT}
echo type=seafile
diff --git a/fstest/testserver/init.d/TestSeafileV6 b/fstest/testserver/init.d/TestSeafileV6
index 1ed076c44..e2365aa87 100755
--- a/fstest/testserver/init.d/TestSeafileV6
+++ b/fstest/testserver/init.d/TestSeafileV6
@@ -35,7 +35,7 @@ start() {
| sed 's/^{"token":"\(.*\)"}$/\1/'`
# create default library
- curl -X POST -H "Authorization: Token ${TOKEN}" "http://${SEAFILE_IP}:${SEAFILE_PORT}/api2/default-repo/"
+ curl --silent -o /dev/null -X POST -H "Authorization: Token ${TOKEN}" "http://${SEAFILE_IP}:${SEAFILE_PORT}/api2/default-repo/"
echo _connect=${SEAFILE_IP}:${SEAFILE_PORT}
echo type=seafile