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