diff options
author | Christian Breunig <christian@breunig.cc> | 2023-07-08 21:18:06 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-07-08 21:19:13 +0200 |
commit | 63256e1b57153762d1d5028fc0bbb8f373ce1433 (patch) | |
tree | 55f5c6e935197b83a7ee30fb00f7db79b04f060d | |
parent | 5fa12000da8bbd29ea695052fd16bf347605461e (diff) | |
download | vyos-1x-63256e1b57153762d1d5028fc0bbb8f373ce1433.tar.gz vyos-1x-63256e1b57153762d1d5028fc0bbb8f373ce1433.zip |
vpp: T1797:: support re-installation of vyos-1x package
-rw-r--r-- | debian/vyos-1x.postinst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/vyos-1x.postinst b/debian/vyos-1x.postinst index 2958afd0a..93e7ced9b 100644 --- a/debian/vyos-1x.postinst +++ b/debian/vyos-1x.postinst @@ -186,5 +186,8 @@ systemctl enable vyos-config-cloud-init.service # # sudo mv /opt/vyatta/share/vyatta-cfg/vpp /opt/vyatta/share/vyatta-cfg/templates/vpp if [ -d /opt/vyatta/share/vyatta-cfg/templates/vpp ]; then + if [ -d /opt/vyatta/share/vyatta-cfg/vpp ]; then + rm -rf /opt/vyatta/share/vyatta-cfg/vpp + fi mv /opt/vyatta/share/vyatta-cfg/templates/vpp /opt/vyatta/share/vyatta-cfg/vpp fi |