X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=onak-mail.pl.in;h=2083042e86d716ba7bc19fb7c93b599489c4d787;hb=de18b56efecadc4b5d2473904828db9c08cd2162;hp=8231a127e22abd762e5ff495445b63a1d90f25d3;hpb=4ab0e97e5ff2dab7dcc5ae14050e442892b8f0ff;p=onak.git diff --git a/onak-mail.pl.in b/onak-mail.pl.in index 8231a12..2083042 100644 --- a/onak-mail.pl.in +++ b/onak-mail.pl.in @@ -21,7 +21,7 @@ my %config; # upgrades. # sub readoldconfig { - open(CONFIG, "@CONFIGOLD@") or + open(CONFIG, "@CMAKE_INSTALL_FULL_SYSCONFDIR@/onak.conf") or die "Can't read config file: $!"; while () { @@ -57,12 +57,12 @@ sub readoldconfig { # sub readconfig { # Prefer the old style config if it exists. - if (-e "@CONFIGOLD@") { + if (-e "@CMAKE_INSTALL_FULL_SYSCONFDIR@/onak.conf") { &readoldconfig; return; } - open(CONFIG, "@CONFIG@") or + open(CONFIG, "@CMAKE_INSTALL_FULL_SYSCONFDIR@/onak.ini") or die "Can't read config file: $!"; my $section = "";