#!/bin/sh 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 $FREESIDE_CONF/dbdef.DBI:Pg:dbname=$domain ] \ || ( freeside-setup -d $realdomain -u $username ) freeside-adduser -g 1 $username htpasswd -b $FREESIDE_CONF/htpasswd $username $password