Skip to content

Commit

Permalink
Fix #444: need to quote in bash (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
e-carlin authored Feb 6, 2024
1 parent 802520e commit da6e134
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion rsconf/package_data/vm_devbox/start.sh.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ vm_devbox_create_vm() {
}

vm_devbox_main() {
cd {{ this.run_d }}
cd '{{ this.run_d }}'
vm_devbox_create_vm
vm_devbox_set_forwarded_port
vm_devbox_set_ssh_config
Expand Down
2 changes: 1 addition & 1 deletion rsconf/package_data/vm_devbox/stop.sh.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -eou pipefail

vm_devbox_main() {
cd {{ this.run_d }}
cd '{{ this.run_d }}'
vagrant halt
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ vm_devbox_create_vm() {
}

vm_devbox_main() {
cd /srv/vm_devbox_user-1
cd '/srv/vm_devbox_user-1'
vm_devbox_create_vm
vm_devbox_set_forwarded_port
vm_devbox_set_ssh_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -eou pipefail

vm_devbox_main() {
cd /srv/vm_devbox_user-1
cd '/srv/vm_devbox_user-1'
vagrant halt
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ rsconf_service_prepare 'vm_devbox_user-1' '/etc/systemd/system/vm_devbox_user-1.
rsconf_install_access '700' 'vagrant' 'vagrant'
rsconf_install_directory '/srv/vm_devbox_user-1'
rsconf_install_access '500' 'vagrant' 'vagrant'
rsconf_install_file '/srv/vm_devbox_user-1/start' '5dc3180f1dfd32e5d9d15e426928e94a'
rsconf_install_file '/srv/vm_devbox_user-1/stop' '17c8ef8fe2fa06489f4e9cb5869d22b6'
rsconf_install_file '/srv/vm_devbox_user-1/start' '03f7809d5a7ef88b6a4ce734814a8ec8'
rsconf_install_file '/srv/vm_devbox_user-1/stop' '94f5e7855deadc753f54580dfad70217'
rsconf_install_access '444' 'root' 'root'
rsconf_install_file '/etc/systemd/system/vm_devbox_user-1.service' '9bea6d3fc6b169474e19863d1e2da5a3'
}

0 comments on commit da6e134

Please sign in to comment.