1 From 9f8dfcaf862738b7439d5b0cb0d76dc24c3b50bc Mon Sep 17 00:00:00 2001
2 From: Dominik Csapak <d.csapak@proxmox.com>
3 Date: Tue, 6 Jul 2021 13:11:24 +0200
4 Subject: [PATCH 12/12] postinst: reload network config on first install
6 Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 debian/ifupdown2.postinst | 4 +++-
10 1 file changed, 3 insertions(+), 1 deletion(-)
12 diff --git a/debian/ifupdown2.postinst b/debian/ifupdown2.postinst
13 index b7de485..0137ea8 100644
14 --- a/debian/ifupdown2.postinst
15 +++ b/debian/ifupdown2.postinst
16 @@ -111,8 +111,10 @@ case "$1" in
18 chmod +x /usr/share/ifupdown2/__main__.py
19 postinst_remove_diverts
20 - if [ -f "/tmp/.ifupdown2-first-install" ]; then
21 + if [ -f "/tmp/.ifupdown2-first-install" ] && [ ! -e /proxmox_install_mode ]; then
23 + echo "Reloading network config on first install"
25 rm /tmp/.ifupdown2-first-install