blob: 5f18bdfac2c9a571ea9759268513cb14a0ec1da0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
username=$1
domain=$2
password=$3
freeside-adduser -h /usr/local/etc/freeside/htpasswd \
-s /usr/local/etc/freeside/conf.DBI:Pg:host=localhost\;dbname=$domain/secrets \
-b \
$username $password
[ -e /usr/local/etc/freeside/dbdef.DBI:Pg:host=localhost\;dbname=$domain ] \
|| ( freeside-setup $username; \
/home/ivan/freeside/bin/populate-msgcat $username )
|