Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
e-carlin committed Jan 18, 2024
1 parent 7e5d358 commit a6e3aa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rsconf/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def _host_db_fconf(self, channel, host):
host_run_d="/srv",
run_u="vagrant",
root_u="root",
installers_url="https://radia.run",
installer_url="https://radia.run",
).pkupdate(c)
),
)
Expand Down
7 changes: 3 additions & 4 deletions rsconf/package_data/vm_devbox/start.sh.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ vm_devbox_first_start() {
if [[ -e Vagrantfile ]]; then
return
fi
curl '{{ rsconf_db.installers_url }}' | vagrant_dev_vm_devbox=1 bash -s vagrant-sirepo-dev '{{ this.vm_hostname}}'
curl '{{ rsconf_db.installer_url }}' | vagrant_dev_vm_devbox=1 bash -s vagrant-sirepo-dev '{{ this.vm_hostname}}'
}

vm_devbox_set_forwarded_port() {
Expand All @@ -21,7 +21,7 @@ _FORWARDED_PORT_FULL = (
)
)
r = False
with open(_FILE, "r+") as f:
with open(_FILE) as f:
c = f.read()
if _FORWARDED_PORT_PREAMBLE not in c:
c = re.sub(
Expand All @@ -39,9 +39,8 @@ with open(_FILE, "r+") as f:
flags=re.MULTILINE,
)
r = True
f.seek(0)
with open(_FILE, 'w') as f:
f.write(c)
f.truncate()
if r:
subprocess.check_call(("vagrant", "reload"))
EOF
Expand Down

0 comments on commit a6e3aa2

Please sign in to comment.