summaryrefslogtreecommitdiff
path: root/utils/lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/lib.sh')
-rwxr-xr-xutils/lib.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/lib.sh b/utils/lib.sh
index 50f15a690..dfa1e9cda 100755
--- a/utils/lib.sh
+++ b/utils/lib.sh
@@ -1077,6 +1077,11 @@ in_container() {
[[ -f /.lxcenv ]]
}
+LXC_ENV_FOLDER=
+if in_container; then
+ LXC_ENV_FOLDER="lxc/$(hostname)/"
+fi
+
lxc_init_container() {
# Create a /.lxcenv file in the root folder. Call this once after container