From 46497cdc8deea4ff44aed0088e6efa5bd12d6027 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 20 May 2025 17:12:34 +0200 Subject: [PATCH] Update build.func --- misc/build.func | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/misc/build.func b/misc/build.func index 8084e63..431eaf0 100644 --- a/misc/build.func +++ b/misc/build.func @@ -966,13 +966,6 @@ build_container() { FEATURES="$FEATURES,fuse=1" fi - if [ "$ENABLE_TUN" == "1" ]; then - cat <>"$LXC_CONFIG" -lxc.cgroup2.devices.allow: c 10:200 rwm -lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file -EOF - fi - if [[ $DIAGNOSTICS == "yes" ]]; then post_to_api fi @@ -1066,6 +1059,13 @@ EOF fi fi + if [ "$ENABLE_TUN" == "1" ]; then + cat <>"$LXC_CONFIG" +lxc.cgroup2.devices.allow: c 10:200 rwm +lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file +EOF + fi + # This starts the container and executes -install.sh msg_info "Starting LXC Container" pct start "$CTID"