projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make the config directory configurable
[freeside.git]
/
FS
/
FS
/
UID.pm
diff --git
a/FS/FS/UID.pm
b/FS/FS/UID.pm
index
eb703d3
..
8dd928e
100644
(file)
--- a/
FS/FS/UID.pm
+++ b/
FS/FS/UID.pm
@@
-21,7
+21,7
@@
use FS::CurrentUser;
$freeside_uid = scalar(getpwnam('freeside'));
$freeside_uid = scalar(getpwnam('freeside'));
-$conf_dir = "
/usr/local/etc/freeside
/";
+$conf_dir = "
%%%FREESIDE_CONF%%%
/";
$AutoCommit = 1; #ours, not DBI
$AutoCommit = 1; #ours, not DBI
@@
-99,7
+99,7
@@
sub forksuidsetup {
}
use FS::Schema qw(reload_dbdef);
}
use FS::Schema qw(reload_dbdef);
- reload_dbdef("
/usr/local/etc/freeside
/dbdef.$datasrc")
+ reload_dbdef("
$conf_dir
/dbdef.$datasrc")
unless $FS::Schema::setup_hack;
FS::CurrentUser->load_user($user);
unless $FS::Schema::setup_hack;
FS::CurrentUser->load_user($user);