diff options
author | ivan <ivan> | 2002-08-25 01:48:06 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-08-25 01:48:06 +0000 |
commit | f8a3854cc6186ae9dc2bfafd3a756224ed999cd7 (patch) | |
tree | 67f6117f9733bd632882cd4c4b8c0dde17b1598d /FS/bin/freeside-addoutsourceuser | |
parent | 3dc9eeed220e7f7adbf08526f109a190deb3f552 (diff) |
Added Files: bin/freeside-addoutsourceuser
Diffstat (limited to 'FS/bin/freeside-addoutsourceuser')
-rw-r--r-- | FS/bin/freeside-addoutsourceuser | 14 |
1 files changed, 14 insertions, 0 deletions
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 ) + |