diff --git a/roles/openvpn/templates/announcer.j2 b/roles/openvpn/templates/announcer.j2 index 8e3a01353..d9020b7e1 100755 --- a/roles/openvpn/templates/announcer.j2 +++ b/roles/openvpn/templates/announcer.j2 @@ -18,11 +18,12 @@ if [ -f /etc/iiab/uuid ]; then UUID=`cat /etc/iiab/uuid` fi -# start the daemon which will serve the handle on demand SERVER=/usr/bin/ncat ID=`printf "HANDLE = %s|UUID = %s" $HANDLE $UUID` -{% if is_debuntu %} #ID=`printf "HANDLE = %s|UUID = %s|" $HANDLE $UUID` + +# start the daemon which will serve the handle on demand +{% if is_debuntu %} $SERVER -l -k -p1705 --exec "/bin/echo $ID" & {% else %} source /etc/init.d/functions