Fix skip SSL certificate parameter
This commit is contained in:
10
CHANGELOG.md
10
CHANGELOG.md
@@ -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]: https://gitlab.com/flrnnc-oss/docker-seafile-client/-/releases/tag
|
||||||
<!-- /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 -->
|
||||||
## [3.2.5]
|
## [3.2.5]
|
||||||
### Modified
|
### Modified
|
||||||
|
|||||||
16
Makefile
16
Makefile
@@ -1,24 +1,24 @@
|
|||||||
TARGET?=unstable
|
TARGET?=stable
|
||||||
|
|
||||||
# Mocking
|
# Mocking
|
||||||
mock:
|
mock:
|
||||||
docker compose -f tests/mock/compose.yaml up -d
|
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml up -d
|
||||||
|
|
||||||
unmock:
|
unmock:
|
||||||
docker compose -f tests/mock/compose.yaml down
|
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml down
|
||||||
|
|
||||||
client:
|
client:
|
||||||
docker compose -f tests/mock/compose.yaml rm -fs client
|
TARGET=${TARGET} 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 up -d client
|
||||||
|
|
||||||
shell:
|
shell:
|
||||||
docker compose -f tests/mock/compose.yaml exec client bash
|
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml exec client bash
|
||||||
|
|
||||||
logs:
|
logs:
|
||||||
docker compose -f tests/mock/compose.yaml logs -f client
|
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml logs -f client
|
||||||
|
|
||||||
ps:
|
ps:
|
||||||
docker compose -f tests/mock/compose.yaml ps
|
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml ps
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
build:
|
build:
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ class Client:
|
|||||||
def configure(self):
|
def configure(self):
|
||||||
command = self.binary + ["config"]
|
command = self.binary + ["config"]
|
||||||
if self.skip_ssl_cert:
|
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:
|
if self.download_limit:
|
||||||
subprocess.run(command +["-k", "download_limit", "-v", self.download_limit])
|
subprocess.run(command +["-k", "download_limit", "-v", self.download_limit])
|
||||||
if self.upload_limit:
|
if self.upload_limit:
|
||||||
|
|||||||
Reference in New Issue
Block a user