diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/vyos-update-nhrp.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyos-update-nhrp.pl b/scripts/vyos-update-nhrp.pl index 62b2b34..066b457 100644 --- a/scripts/vyos-update-nhrp.pl +++ b/scripts/vyos-update-nhrp.pl @@ -86,7 +86,7 @@ sub configure_nhrp_tunnels { my @nhrp_tunnels = $config_nhrp_tun->listNodes(); my $notun = 0; - open (my $fh,">$conffile"); + open (my $fh,">$conffile") or die("Can't open $conffile: $!\n"); print $fh ""; close $fh; @@ -135,7 +135,7 @@ sub configure_nhrp_ipsec { my @ipsec_profiles = $config_ipsec->listNodes(); my $isipsec = 0; - open(my $fh,">$ipsecfile"); + open(my $fh,">$ipsecfile") or die("Can't open $ipsecfile: $!\n"); print $fh ""; close $fh; |