File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
23
23
- flavorable commands: extend support to set-cmd and set-env
24
24
- pot-rdr anchor: the name of the anchor is now a truncated pot name (the last 54 characters)
25
25
- 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)
26
27
27
28
### Deprecated
28
29
- 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.
34
35
### Fixed
35
36
- flavorable commands: they cannot exit, but return. create can stop flavour execution otherwise
36
37
- show: fix single type support and directory in fscomp.conf
38
+ - start: if the command has arguments with equals, it would have been truncated
37
39
38
40
## [ 0.9.2] 2019-08-25
39
41
### Added
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ _js_get_cmd()
272
272
local _pname _cdir _value
273
273
_pname=" $1 "
274
274
_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=// ' ) "
276
276
[ -z " $_value " ] && _value=" sh /etc/rc"
277
277
echo " $_value "
278
278
}
@@ -378,7 +378,7 @@ _js_start()
378
378
fi
379
379
_bg_start " $_pname " &
380
380
_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 "
382
382
sleep 1
383
383
if ! _is_pot_running " $_pname " ; then
384
384
start-cleanup " $_pname " " ${_iface} "
You can’t perform that action at this time.
0 commit comments