Revision d2b16e51 hooks/network-remove-post.d/snf-network

b/hooks/network-remove-post.d/snf-network
1 1
#!/bin/bash
2 2

  
3
source /etc/default/snf-network
3
DEFAULT=/etc/default/snf-network
4 4

  
5
source $DEFAULT 
5 6

  
6
NETFILE=$SHAREDDIR/networks/$NETWORK
7
source $CONF
8

  
9
NETWORK=$GANETI_NETWORK_NAME
7 10

  
8
rm $NETFILE
11
NETFILE=$SHAREDDIR/networks/$NETWORK
9 12

  
13
if [ -e "$NETFILE" ]; then
14
  rm $NETFILE
15
fi

Also available in: Unified diff