mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
tests - fix wrong command in linux tests
This commit is contained in:
parent
8f7833413b
commit
843c023707
3 changed files with 4 additions and 4 deletions
|
|
@ -120,7 +120,7 @@ try:
|
|||
)
|
||||
|
||||
tgz = get_file_in_db("folder.tgz", db, job_name="certbot-renew")
|
||||
if tgz and bw_integration in ("Docker", "Swarm", "Kubernetes", "Autoconf"):
|
||||
if tgz:
|
||||
# Delete folder if needed
|
||||
if letsencrypt_path.exists():
|
||||
rmtree(str(letsencrypt_path), ignore_errors=True)
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ try:
|
|||
elif os_release_path.is_file() and "Alpine" in os_release_path.read_text(
|
||||
encoding="utf-8"
|
||||
):
|
||||
bw_integration + "Docker"
|
||||
bw_integration = "Docker"
|
||||
|
||||
# Extract letsencrypt folder if it exists in db
|
||||
db = Database(
|
||||
|
|
@ -112,7 +112,7 @@ try:
|
|||
)
|
||||
|
||||
tgz = get_file_in_db("folder.tgz", db)
|
||||
if tgz and bw_integration in ("Docker", "Swarm", "Kubernetes", "Autoconf"):
|
||||
if tgz:
|
||||
# Delete folder if needed
|
||||
if letsencrypt_path.exists():
|
||||
rmtree(str(letsencrypt_path), ignore_errors=True)
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ class LinuxTest(Test):
|
|||
setup = f"{test}/setup-linux.sh"
|
||||
if isfile(setup):
|
||||
proc = self.docker_exec(
|
||||
self.__distro, f"cd /opt/{self._name} && ./setup-linux.sh && chmod -R nginx:nginx /etc/bunkerweb/configs"
|
||||
self.__distro, f"cd /opt/{self._name} && ./setup-linux.sh && chown -R nginx:nginx /etc/bunkerweb/configs"
|
||||
)
|
||||
if proc.returncode != 0:
|
||||
raise Exception("docker exec setup failed (test)")
|
||||
|
|
|
|||
Loading…
Reference in a new issue