diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-11-02 17:15:23 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-11-02 17:15:23 +0100 |
commit | e80ad7ab16b9d42d169bceb523d60510f9bf8fe9 (patch) | |
tree | b173ea72134476f5515707b962cb4660b650084e /bin/taler-deployment | |
parent | 09bf18f46f8c685f7b05211803afeffbbea3eb5e (diff) | |
download | deployment-e80ad7ab16b9d42d169bceb523d60510f9bf8fe9.tar.gz deployment-e80ad7ab16b9d42d169bceb523d60510f9bf8fe9.tar.bz2 deployment-e80ad7ab16b9d42d169bceb523d60510f9bf8fe9.zip |
Revert "separate update from bootstrap"
This reverts commit 09bf18f46f8c685f7b05211803afeffbbea3eb5e.
Diffstat (limited to 'bin/taler-deployment')
-rwxr-xr-x | bin/taler-deployment | 42 |
1 files changed, 14 insertions, 28 deletions
diff --git a/bin/taler-deployment b/bin/taler-deployment index b8a3db4..b9488b4 100755 --- a/bin/taler-deployment +++ b/bin/taler-deployment @@ -400,8 +400,20 @@ def switch_demo(color) -> None: active_home.symlink_to(f"/home/demo-{color}") -def update_repos(repos): - sources = Path.home() / "sources" +@cli.command() +def bootstrap() -> None: + """Bootstrap a GNU Taler deployment.""" + + home = Path.home() + + cfg = load_envcfg() + env_info = get_env_info(cfg) + repos = env_info.repos + envname = env_info.name + + # read Python-style config + + sources = home / "sources" for r in repos: r_dir = home / "sources" / r.name @@ -417,30 +429,6 @@ def update_repos(repos): check=True, ) - -@cli.command() -def update(): - """Update sources repos""" - home = Path.home() - cfg = load_envcfg() - env_info = get_env_info(cfg) - repos = env_info.repos - update_repos(repos) - - -@cli.command() -def bootstrap() -> None: - """Bootstrap a GNU Taler deployment.""" - - home = Path.home() - - cfg = load_envcfg() - env_info = get_env_info(cfg) - repos = env_info.repos - envname = env_info.name - - # read Python-style config - with (home / "activate").open("w") as f: f.write( activate_template.format( @@ -451,8 +439,6 @@ def bootstrap() -> None: ) ) - update_repos() - (home / "sockets").mkdir(parents=True, exist_ok=True) if envname in ("test", "int"): |