first part of ACL and re-skinning work and some other small stuff
[freeside.git] / FS / bin / freeside-addoutsourceuser
index 5f18bdf..02a4351 100644 (file)
@@ -3,13 +3,13 @@
 username=$1
 domain=$2
 password=$3
+realdomain=$4
 
 freeside-adduser -h /usr/local/etc/freeside/htpasswd \
-s /usr/local/etc/freeside/conf.DBI:Pg:host=localhost\;dbname=$domain/secrets \
- -b \
- $username $password
                -s conf.DBI:Pg:dbname=$domain/secrets \
                -b \
+                 $username $password 2>/dev/null
 
-[ -e /usr/local/etc/freeside/dbdef.DBI:Pg:host=localhost\;dbname=$domain ] \
- || ( freeside-setup $username; \
-      /home/ivan/freeside/bin/populate-msgcat $username )
+[ -e /usr/local/etc/freeside/dbdef.DBI:Pg:dbname=$domain ] \
+ || ( freeside-setup -d $realdomain $username 2>/dev/null )