Răsfoiți Sursa

Resolves: 250535
Summary: Make repl-monitor.pl a template to pass in correct perl environment.

Nathan Kinder 17 ani în urmă
părinte
comite
1d4ca4f33e
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      ldap/admin/src/scripts/repl-monitor.pl.in

+ 3 - 1
ldap/admin/src/scripts/repl-monitor.pl → ldap/admin/src/scripts/repl-monitor.pl.in

@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
+#!@perlexec@
 # BEGIN COPYRIGHT BLOCK
 # This Program is free software; you can redistribute it and/or modify it under
 # the terms of the GNU General Public License as published by the Free Software
@@ -156,6 +156,8 @@
 # If using this script standalone, be sure to set the shared lib path and
 # the path to the perldap modules.
 
+use lib qw(@perlpath@);
+
 $usage = "\nusage: $0 -f configuration-file [-h host] [-p port] [-r] [-u refresh-url] [-t refresh-interval]\n\nor   : $0 -v\n"; 
 
 use Getopt::Std;		# parse command line arguments