tinc: add creation of hosts directory for each network configuration

Signed-off-by: Erwan MAS <erwan@mas.nom.fr>
(cherry picked from commit fb99d50c1e)
This commit is contained in:
Erwan MAS 2022-03-05 16:00:21 -05:00 committed by Josef Schlehofer
parent 4af55248a4
commit b9f45b9ded
No known key found for this signature in database
GPG Key ID: B950216FE4329F4C
1 changed files with 1 additions and 1 deletions

View 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