pvenetcommit: better handle non-existent pending changes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-10-20 16:20:09 +02:00
parent f332a16745
commit 6c83ba5823

View File

@ -6,12 +6,10 @@ Before=sysinit.target
[Service]
ExecStartPre=-/bin/rm -f /etc/openvswitch/conf.db
ExecStartPre=-/bin/mv /etc/network/interfaces.new /etc/network/interfaces
ExecStart=/bin/true
Environment="FN=/etc/network/interfaces"
ExecStart=sh -c 'if [ -f ${FN}.new ]; then mv ${FN}.new ${FN}; fi'
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=sysinit.target