From f8a3854cc6186ae9dc2bfafd3a756224ed999cd7 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 25 Aug 2002 01:48:06 +0000 Subject: Added Files: bin/freeside-addoutsourceuser --- FS/bin/freeside-addoutsourceuser | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 FS/bin/freeside-addoutsourceuser (limited to 'FS/bin/freeside-addoutsourceuser') diff --git a/FS/bin/freeside-addoutsourceuser b/FS/bin/freeside-addoutsourceuser new file mode 100644 index 000000000..f76f39808 --- /dev/null +++ b/FS/bin/freeside-addoutsourceuser @@ -0,0 +1,14 @@ +#!/bin/sh + +username=$1 +domain=$2 + +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 ) + -- cgit v1.2.1