Lines 1-4
Link Here
|
1 |
#!/bin/perl |
1 |
#!/usr/bin/perl |
2 |
#============================================================= -*-perl-*- |
2 |
#============================================================= -*-perl-*- |
3 |
# |
3 |
# |
4 |
# configure.pl: Configuration and installation program for BackupPC |
4 |
# configure.pl: Configuration and installation program for BackupPC |
Lines 157-163
Link Here
|
157 |
# config file to get all the defaults. |
157 |
# config file to get all the defaults. |
158 |
# |
158 |
# |
159 |
my $ConfigPath = ""; |
159 |
my $ConfigPath = ""; |
160 |
my $ConfigFileOK = 1; |
160 |
my $ConfigFileOK = 0; |
161 |
while ( 1 ) { |
161 |
while ( 1 ) { |
162 |
if ( $ConfigFileOK && -f "/etc/BackupPC/config.pl" ) { |
162 |
if ( $ConfigFileOK && -f "/etc/BackupPC/config.pl" ) { |
163 |
$ConfigPath = "/etc/BackupPC/config.pl"; |
163 |
$ConfigPath = "/etc/BackupPC/config.pl"; |
Lines 212-218
Link Here
|
212 |
$bpc->{LogDir} = $Conf{LogDir} = "$Conf{TopDir}/log" |
212 |
$bpc->{LogDir} = $Conf{LogDir} = "$Conf{TopDir}/log" |
213 |
if ( $Conf{LogDir} eq '' ); |
213 |
if ( $Conf{LogDir} eq '' ); |
214 |
} |
214 |
} |
215 |
$bpc->{ConfDir} = $Conf{ConfDir} = $confDir; |
215 |
# Disable this as it's not really neccessary for this ebuild |
|
|
216 |
# $bpc->{ConfDir} = $Conf{ConfDir} = $confDir; |
216 |
my $err = $bpc->ServerConnect($Conf{ServerHost}, $Conf{ServerPort}, 1); |
217 |
my $err = $bpc->ServerConnect($Conf{ServerHost}, $Conf{ServerPort}, 1); |
217 |
if ( $err eq "" ) { |
218 |
if ( $err eq "" ) { |
218 |
print <<EOF; |
219 |
print <<EOF; |
Lines 718-724
Link Here
|
718 |
if ( $Conf{CgiDir} =~ m{cgi-bin(/.*)} ) { |
719 |
if ( $Conf{CgiDir} =~ m{cgi-bin(/.*)} ) { |
719 |
$Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin$1/BackupPC_Admin'"; |
720 |
$Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin$1/BackupPC_Admin'"; |
720 |
} else { |
721 |
} else { |
721 |
$Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin/BackupPC_Admin'"; |
722 |
$Conf{CgiURL} = "'http://$Conf{ServerHost}/BackupPC_Admin'"; |
722 |
} |
723 |
} |
723 |
} |
724 |
} |
724 |
|
725 |
|