Merge branch 'fix--skip-ssl-cert' into 'master'

Fix skip SSL certificate parameter

Close #72

See merge request flrnnc-oss/docker-seafile-client!21
This commit is contained in:
Florian Anceau
2024-09-19 21:51:17 +00:00
3 changed files with 19 additions and 9 deletions

View File

@@ -19,6 +19,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[tag]: https://gitlab.com/flrnnc-oss/docker-seafile-client/-/releases/tag
<!-- /tag --/>
<!-- 3.3.0 -->
## [3.3.0]
### Modified
* Add TARGET environment variable to Makefile commands.
### Fixed
* Fix the TypeError for the skip SSL certificates parameters.
[3.3.0]: https://gitlab.com/flrnnc-oss/docker-seafile-client/-/releases/3.3.0
<!-- /3.3.0 -->
<!-- 3.2.5 -->
## [3.2.5]
### Modified

View File

@@ -1,24 +1,24 @@
TARGET?=unstable
TARGET?=stable
# Mocking
mock:
docker compose -f tests/mock/compose.yaml up -d
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml up -d
unmock:
docker compose -f tests/mock/compose.yaml down
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml down
client:
docker compose -f tests/mock/compose.yaml rm -fs client
docker compose -f tests/mock/compose.yaml up -d client
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml rm -fs client
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml up -d client
shell:
docker compose -f tests/mock/compose.yaml exec client bash
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml exec client bash
logs:
docker compose -f tests/mock/compose.yaml logs -f client
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml logs -f client
ps:
docker compose -f tests/mock/compose.yaml ps
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml ps
# Build
build:

View File

@@ -150,7 +150,7 @@ class Client:
def configure(self):
command = self.binary + ["config"]
if self.skip_ssl_cert:
subprocess.run(command +["-k", "disable_verify_certificate", "-v", self.skip_ssl_cert])
subprocess.run(command +["-k", "disable_verify_certificate", "-v", str(self.skip_ssl_cert)])
if self.download_limit:
subprocess.run(command +["-k", "download_limit", "-v", self.download_limit])
if self.upload_limit: