fix redirection typo to ${LOG}
This commit fixes the redirection of std error to the ${LOG} file. It was starting all lxc command in background, resulting in unpredictable failures.
This commit is contained in:
parent
df5f7ba2f6
commit
24c3d73a53
1 changed files with 5 additions and 5 deletions
|
@ -3,21 +3,21 @@
|
||||||
utils.lxc.attach() {
|
utils.lxc.attach() {
|
||||||
cmd="$@"
|
cmd="$@"
|
||||||
log "Running [${cmd}] inside '${CONTAINER}' container..."
|
log "Running [${cmd}] inside '${CONTAINER}' container..."
|
||||||
(lxc-attach -n ${CONTAINER} -- $cmd) & >> ${LOG}
|
(lxc-attach -n ${CONTAINER} -- $cmd) &>> ${LOG}
|
||||||
}
|
}
|
||||||
|
|
||||||
utils.lxc.start() {
|
utils.lxc.start() {
|
||||||
lxc-start -d -n ${CONTAINER} & >> ${LOG} || true
|
lxc-start -d -n ${CONTAINER} &>> ${LOG} || true
|
||||||
}
|
}
|
||||||
|
|
||||||
utils.lxc.stop() {
|
utils.lxc.stop() {
|
||||||
lxc-stop -n ${CONTAINER} & >> ${LOG} || true
|
lxc-stop -n ${CONTAINER} &>> ${LOG} || true
|
||||||
}
|
}
|
||||||
|
|
||||||
utils.lxc.destroy() {
|
utils.lxc.destroy() {
|
||||||
lxc-destroy -n ${CONTAINER} & >> ${LOG}
|
lxc-destroy -n ${CONTAINER} &>> ${LOG}
|
||||||
}
|
}
|
||||||
|
|
||||||
utils.lxc.create() {
|
utils.lxc.create() {
|
||||||
lxc-create -n ${CONTAINER} "$@" & >> ${LOG}
|
lxc-create -n ${CONTAINER} "$@" &>> ${LOG}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue