summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-07-08 21:18:06 +0200
committerChristian Breunig <christian@breunig.cc>2023-07-08 21:19:13 +0200
commit63256e1b57153762d1d5028fc0bbb8f373ce1433 (patch)
tree55f5c6e935197b83a7ee30fb00f7db79b04f060d /debian
parent5fa12000da8bbd29ea695052fd16bf347605461e (diff)
downloadvyos-1x-63256e1b57153762d1d5028fc0bbb8f373ce1433.tar.gz
vyos-1x-63256e1b57153762d1d5028fc0bbb8f373ce1433.zip
vpp: T1797:: support re-installation of vyos-1x package
Diffstat (limited to 'debian')
-rw-r--r--debian/vyos-1x.postinst3
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