mirror of
https://git.freebsd.org/ports.git
synced 2025-06-23 05:30:31 -04:00
Fix configuration paths in CGIs and reports to include /usr/local/etc/rtg. Affects common.php, reports.pl, and 95.pl. This will fix the CGIs to almost work out of the box. Improve rtgtargmkr.pl to skip unresponsive routers rather than dying. Add USES=ssl PR: 217108 Submitted by: andrew.fengler@scaleengine.com Approved by: maintainer timeout (15 days)
11 lines
459 B
Raku
11 lines
459 B
Raku
--- etc/report.pl.orig 2016-11-04 16:36:08 UTC
|
|
+++ etc/report.pl
|
|
@@ -30,7 +30,7 @@ $pass="rtgdefault";
|
|
$onedaysec=60*60*24;
|
|
|
|
# Default locations to find RTG configuration file
|
|
-@configs = ("rtg.conf", "/usr/local/rtg/etc/rtg.conf", "/etc/rtg.conf");
|
|
+@configs = ("rtg.conf", "%%PREFIX%%/etc/rtg/rtg.conf", "/usr/local/rtg/etc/rtg.conf", "/etc/rtg.conf");
|
|
foreach $conf (@configs) {
|
|
if (open CONF, "<$conf") {
|
|
print "Reading [$conf].\n" if $DEBUG;
|