Title: [opsview] [11638] Use $Bin instead of full path.
- Revision
- 11638
- Author
- pknight
- Date
- 2013-03-01 10:58:01 +0000 (Fri, 01 Mar 2013)
Log Message
Use $Bin instead of full path.
No reason to 'use lib' here.
Added warnings.
Modified Paths
Modified: trunk/opsview-core/installer/upgradedb.pl
===================================================================
--- trunk/opsview-core/installer/upgradedb.pl 2013-03-01 10:46:37 UTC (rev 11637)
+++ trunk/opsview-core/installer/upgradedb.pl 2013-03-01 10:58:01 UTC (rev 11638)
@@ -28,11 +28,11 @@
#
use strict;
+use warnings;
use FindBin qw($Bin);
-use lib "/usr/local/nagios/perl/lib";
foreach my $db (qw(opsview runtime)) {
system("$Bin/upgradedb_$db.pl 2>&1") == 0 or die "upgrade failed";
}
-`$Bin/../bin/install_all_opspacks --dir /usr/local/nagios/import/opspacks`;
+`$Bin/../bin/install_all_opspacks --dir $Bin/../import/opspacks`;
_______________________________________________
Opsview-checkins mailing list
Opsview-checkins@lists.opsview.org
http://lists.opsview.org/lists/listinfo/opsview-checkins