mirror of
https://github.com/searxng/searxng.git
synced 2025-07-15 01:09:21 +02:00
LXC: set LXC_ENV_FOLDER=lxc/$(shell hostname)/
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
103c542b37
commit
baf1ffd1fa
4 changed files with 14 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue