summaryrefslogtreecommitdiff
path: root/utils/lib.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-03-23 18:05:46 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2020-03-23 18:05:46 +0100
commitbaf1ffd1fa4923f3bd105f0d8daac4a9527bdc50 (patch)
treedb8a5429a0d8c915a73a2221b590fb78e22384d3 /utils/lib.sh
parent103c542b374041c8b19e5867fbb32666bf23317b (diff)
downloadsearxng-baf1ffd1fa4923f3bd105f0d8daac4a9527bdc50.tar.gz
searxng-baf1ffd1fa4923f3bd105f0d8daac4a9527bdc50.zip
LXC: set LXC_ENV_FOLDER=lxc/$(shell hostname)/
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
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