diff options
-rwxr-xr-x | vhostcname/vhostcname | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vhostcname/vhostcname b/vhostcname/vhostcname index eddb9fd..b5a35e0 100755 --- a/vhostcname/vhostcname +++ b/vhostcname/vhostcname @@ -312,9 +312,9 @@ push(@zone, $host) if ($#zone == -1); $debug++ if ($dry_run); if ($#ARGV == -1) { - abend(3, "command not given") unless ($ENV{'DIRCOND_FILE'}); - print STDERR "$script: started as dircond handler for " . - "$ENV{'DIRCOND_GENEV_NAME'} on $ENV{'DIRCOND_FILE'}\n" + abend(3, "command not given") unless ($ENV{'DIREVENT_FILE'}); + print STDERR "$script: started as direvent handler for " . + "$ENV{'DIREVENT_GENEV_NAME'} on $ENV{'DIREVENT_FILE'}\n" if ($debug); my $cwd = getcwd; my $update_dir; @@ -323,7 +323,7 @@ if ($#ARGV == -1) { foreach my $file (glob "$confdir/sites-enabled/$confpat") { next unless (-l $file); if (realpath(readlink($file)) eq - "$confdir/sites-available/$ENV{'DIRCOND_FILE'}") { + "$confdir/sites-available/$ENV{'DIREVENT_FILE'}") { $update_dir = "$confdir/sites-enabled"; last; } @@ -385,10 +385,10 @@ For example, on Debian-based GNU/Linux: ln -sf /usr/bin/vhostcname /etc/init.d update-rc.d vhostcname defaults -The program can also be ised as a B<dircond>(8) handler. This use +The program can also be ised as a B<direvent>(8) handler. This use allows for immediate updates of the DNS records upon any modifications to the Apache configuration files. The following example shows the -corresponding B<dircond.conf>(5) entry: +corresponding B<direvent.conf>(5) entry: watcher { path /etc/apache2/sites-available; @@ -558,7 +558,7 @@ DNSSEC key. Ditto for the B<--server> option. =head1 SEE ALSO -B<dircond>(8). +B<direvent>(8). =head1 AUTHOR |