Remove dangling symlink before copying to iptables-xml

The launchpad build was failing with the following:
  cp: not writing through dangling symlink
  '/build/nova-hypervisor/parts/iptables/install/bin/iptables-xml'

Update the cp command to remove existing destination file before
attempting to open it.

Change-Id: I50e6a1e7a1d5a558e502d5613a188f24392554e8
This commit is contained in:
Corey Bryant 2017-06-26 14:49:25 +00:00
parent e580bc461d
commit 214d6b1a4d
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ parts:
configflags:
- --disable-nftables
install: |
cp -f $SNAPCRAFT_PART_INSTALL/sbin/xtables-multi $SNAPCRAFT_PART_INSTALL/bin/iptables-xml
cp --remove-destination $SNAPCRAFT_PART_INSTALL/sbin/xtables-multi $SNAPCRAFT_PART_INSTALL/bin/iptables-xml
ipset:
source: http://ipset.netfilter.org/ipset-6.30.tar.bz2
plugin: autotools