tinc: add creation of hosts directory for each network configuration
authorErwan MAS <[email protected]>
Sat, 5 Mar 2022 21:00:21 +0000 (16:00 -0500)
committerJosef Schlehofer <[email protected]>
Tue, 30 Aug 2022 08:50:56 +0000 (10:50 +0200)
Signed-off-by: Erwan MAS <[email protected]>
(cherry picked from commit fb99d50c1edd4be765bef6d55bee26bfb90576b6)

net/tinc/files/tinc.init

index ba2134fe0f680807bc2f20f7f05ec876351dbb3e..8823b97e74b604d1da325dfb4898f8375ce4075b 100644 (file)
@@ -156,7 +156,7 @@ prepare_net() {
        section_enabled "$s" || return 1
 
        [ -d "$TMP_TINC/$s" ] && rm -rf "$TMP_TINC/$s/"
-       mkdir -p "$TMP_TINC/$s"
+       mkdir -p "$TMP_TINC/$s/hosts"
        [ -d "/etc/tinc/$s" ] && cp -r "/etc/tinc/$s" "$TMP_TINC/"
 
        # append flags