Skip to content

Commit 7bb8df3

Browse files
committed
start: fix cmd with =
1 parent 79a959e commit 7bb8df3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2323
- flavorable commands: extend support to set-cmd and set-env
2424
- pot-rdr anchor: the name of the anchor is now a truncated pot name (the last 54 characters)
2525
- export: it's executed only if one snapshot is available. -F force execution, -A call purge-snapshots to reduce the number of shapshot to 1
26+
- start: using exec.start instead of command (it seems more predictable)
2627

2728
### Deprecated
2829
- snapshot: -n option to provide custom name to snapshots
@@ -34,6 +35,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3435
### Fixed
3536
- flavorable commands: they cannot exit, but return. create can stop flavour execution otherwise
3637
- show: fix single type support and directory in fscomp.conf
38+
- start: if the command has arguments with equals, it would have been truncated
3739

3840
## [0.9.2] 2019-08-25
3941
### Added

share/pot/start.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ _js_get_cmd()
272272
local _pname _cdir _value
273273
_pname="$1"
274274
_cdir="${POT_FS_ROOT}/jails/$_pname/conf"
275-
_value="$( grep "^pot.cmd=" "$_cdir/pot.conf" | cut -f2 -d'=' )"
275+
_value="$( grep "^pot.cmd=" "$_cdir/pot.conf" | sed 's/^pot.cmd=//' )"
276276
[ -z "$_value" ] && _value="sh /etc/rc"
277277
echo "$_value"
278278
}
@@ -378,7 +378,7 @@ _js_start()
378378
fi
379379
_bg_start "$_pname" &
380380
_info "Starting the pot $_pname"
381-
jail -c -J "/tmp/${_pname}.jail.conf" $_param command=$_cmd
381+
jail -c -J "/tmp/${_pname}.jail.conf" $_param exec.start="$_cmd"
382382
sleep 1
383383
if ! _is_pot_running "$_pname" ; then
384384
start-cleanup "$_pname" "${_iface}"

0 commit comments

Comments
 (0)