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/MANIFEST | 2 ++ FS/bin/freeside-addoutsourceuser | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 FS/bin/freeside-addoutsourceuser (limited to 'FS') diff --git a/FS/MANIFEST b/FS/MANIFEST index 18842df23..fff95c8c8 100644 --- a/FS/MANIFEST +++ b/FS/MANIFEST @@ -8,8 +8,10 @@ bin/freeside-daily bin/freeside-email bin/freeside-queued bin/freeside-addoutsource +bin/freeside-addoutsourceuser bin/freeside-apply-credits bin/freeside-adduser +bin/freeside-setup bin/freeside-setinvoice bin/freeside-overdue bin/freeside-receivables-report 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