summaryrefslogtreecommitdiff
path: root/FS/bin/freeside-addoutsourceuser
diff options
context:
space:
mode:
authorivan <ivan>2006-12-14 09:27:26 +0000
committerivan <ivan>2006-12-14 09:27:26 +0000
commit7422aa77086326ba1e6032150ce5704d1003ea6f (patch)
tree9a69bc3c41f13a944198ae882933aa51cc9f6a5c /FS/bin/freeside-addoutsourceuser
parentdcdf657e77ec7b46dc69e19a849a9c133123db7c (diff)
make the config directory configurable
Diffstat (limited to 'FS/bin/freeside-addoutsourceuser')
-rw-r--r--FS/bin/freeside-addoutsourceuser7
1 files changed, 3 insertions, 4 deletions
diff --git a/FS/bin/freeside-addoutsourceuser b/FS/bin/freeside-addoutsourceuser
index 889d28adb..cbe792acc 100644
--- a/FS/bin/freeside-addoutsourceuser
+++ b/FS/bin/freeside-addoutsourceuser
@@ -4,16 +4,15 @@ username=$1
domain=$2
password=$3
realdomain=$4
-
+FREESIDE_CONF=%%%FREESIDE_CONF%%%
freeside-adduser -s conf.DBI:Pg:dbname=$domain/secrets \
-n \
$username #2>/dev/null
-[ -e /usr/local/etc/freeside/dbdef.DBI:Pg:dbname=$domain ] \
+[ -e $FREESIDE_CONF/dbdef.DBI:Pg:dbname=$domain ] \
|| ( freeside-setup -d $realdomain -u $username )
-# 2>/dev/null
freeside-adduser -g 1 $username
-htpasswd -b /usr/local/etc/freeside/htpasswd $username $password
+htpasswd -b $FREESIDE_CONF/htpasswd $username $password