summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2002-08-25 01:48:06 +0000
committerivan <ivan>2002-08-25 01:48:06 +0000
commitf8a3854cc6186ae9dc2bfafd3a756224ed999cd7 (patch)
tree67f6117f9733bd632882cd4c4b8c0dde17b1598d /FS
parent3dc9eeed220e7f7adbf08526f109a190deb3f552 (diff)
Added Files: bin/freeside-addoutsourceuser
Diffstat (limited to 'FS')
-rw-r--r--FS/MANIFEST2
-rw-r--r--FS/bin/freeside-addoutsourceuser14
2 files changed, 16 insertions, 0 deletions
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 )
+