Skip to content

Commit

Permalink
feat: escape special chars from root password
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh6790 committed Sep 4, 2024
1 parent 9f7d1ac commit b361ed8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion agent/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def bench_new_site(self, name, mariadb_root_password, admin_password, managed_da
return self.docker_execute(
f"bench new-site --no-mariadb-socket "
f"--mariadb-root-username {managed_database_config.get('database_root_user')} "
f"--mariadb-root-password {mariadb_root_password} "
f"--mariadb-root-password '{mariadb_root_password}' "
f"--admin-password {admin_password} {name}"
)
except Exception:
Expand Down
4 changes: 2 additions & 2 deletions agent/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def restore(
return self.bench_execute(
"--force restore "
f"--mariadb-root-username {mariadb_root_user} "
f"--mariadb-root-password {mariadb_root_password} "
f"--mariadb-root-password '{mariadb_root_password}' "
f"--admin-password {admin_password} "
f"{public_file_option} "
f"{private_file_option} "
Expand Down Expand Up @@ -222,7 +222,7 @@ def reinstall(
return self.bench_execute(
f"reinstall --yes "
f"--mariadb-root-username {mariadb_root_user} "
f"--mariadb-root-password {mariadb_root_password} "
f"--mariadb-root-password '{mariadb_root_password}' "
f"--admin-password {admin_password}"
)
except Exception:
Expand Down

0 comments on commit b361ed8

Please sign in to comment.