|
@@ -24,12 +24,15 @@ function cprint {
|
|
}
|
|
}
|
|
|
|
|
|
function container_sh {
|
|
function container_sh {
|
|
|
|
+ if [ $# -eq 1 ]; then
|
|
|
|
+ cprint "info" "${1}"
|
|
|
|
+ fi
|
|
lxc exec ${CONTAINER_NAME} -- sh -c "${1}"
|
|
lxc exec ${CONTAINER_NAME} -- sh -c "${1}"
|
|
return $?
|
|
return $?
|
|
}
|
|
}
|
|
|
|
|
|
function container_home {
|
|
function container_home {
|
|
- container_sh "echo $(echo '${HOME}')"
|
|
|
|
|
|
+ container_sh "echo $(echo '${HOME}')" 1
|
|
return $?
|
|
return $?
|
|
}
|
|
}
|
|
|
|
|