forked from ledgersmb/LedgerSMB
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ledgersmb#8565 from ehuelsmann/tooling/create-stan…
…dard-testdb Add Makefile command to quickly create a test company
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
TESTDB=$1 | ||
TESTCONFIG=$2 | ||
|
||
set -x | ||
|
||
bin/ledgersmb-admin create postgres@${POSTGRES_HOST}/${TESTDB}#xyz | ||
bin/ledgersmb-admin setup load postgres@${POSTGRES_HOST}/${TESTDB}#xyz $TESTCONFIG | ||
bin/ledgersmb-admin user create postgres@${POSTGRES_HOST}/${TESTDB}#xyz --username ${TESTUSER:-test} --password abc --ssn 1 --country US --first-name T --last-name E --employeenumber 1 --permission "Full Permissions" | ||
|