mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-04-28 11:22:34 +00:00
pvenetcommit: better handle non-existent pending changes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f332a16745
commit
6c83ba5823
@ -6,12 +6,10 @@ Before=sysinit.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStartPre=-/bin/rm -f /etc/openvswitch/conf.db
|
ExecStartPre=-/bin/rm -f /etc/openvswitch/conf.db
|
||||||
ExecStartPre=-/bin/mv /etc/network/interfaces.new /etc/network/interfaces
|
Environment="FN=/etc/network/interfaces"
|
||||||
ExecStart=/bin/true
|
ExecStart=sh -c 'if [ -f ${FN}.new ]; then mv ${FN}.new ${FN}; fi'
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=sysinit.target
|
WantedBy=sysinit.target
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user