summaryrefslogtreecommitdiff
path: root/FS/bin/freeside-addoutsourceuser
diff options
context:
space:
mode:
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