diff options
| author | Ezra Peisach <epeisach@mit.edu> | 1996-10-03 17:26:08 +0000 |
|---|---|---|
| committer | Ezra Peisach <epeisach@mit.edu> | 1996-10-03 17:26:08 +0000 |
| commit | 681fb9a54e8caeebbcda223617c4844e6a9ec799 (patch) | |
| tree | 4939faac0a1035be675bd33008e8713f6bb0119b /src/kadmin/testing/scripts/init_db | |
| parent | 326f8b7ea5508bc3eda6f26ec2db5cf81130b258 (diff) | |
| download | krb5-681fb9a54e8caeebbcda223617c4844e6a9ec799.tar.gz krb5-681fb9a54e8caeebbcda223617c4844e6a9ec799.tar.xz krb5-681fb9a54e8caeebbcda223617c4844e6a9ec799.zip | |
* env-setup.shin: Renamed env-setup.sh for autoconf use
* init_db, start_servers, start_servers_local, stop_servers:
Invoke scripts from source directory or build tree as needed.
* configure.in, Makefile.in: generate env-setup.sh with proper
paths already.
(env-setup.shin was created - retaining the old history logs)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9138 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kadmin/testing/scripts/init_db')
| -rw-r--r-- | src/kadmin/testing/scripts/init_db | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/kadmin/testing/scripts/init_db b/src/kadmin/testing/scripts/init_db index 4b4d95485..c44a9760a 100644 --- a/src/kadmin/testing/scripts/init_db +++ b/src/kadmin/testing/scripts/init_db @@ -18,6 +18,11 @@ if [ "$TOP" = "" ]; then exit 1 fi +if [ "$STOP" = "" ]; then + echo "init_db: Environment variable \$STOP must point to top of source tree" 1>&2 + exit 1 +fi + IROOT=$TOP/.. ADMIN=$TOP/dbutil BIN=$IROOT/bin @@ -26,8 +31,9 @@ SBIN=$TOP/keytab:$TOP/server DUMMY=${REALM=SECURE-TEST.OV.COM}; export REALM DUMMY=${TESTDIR=$TOP/testing}; export TESTDIR +DUMMY=${STESTDIR=$STOP/testing} DUMMY=${SRVTCL=$TESTDIR/util/ovsec_kadm_srv_tcl}; export SRVTCL -DUMMY=${TCLUTIL=$TESTDIR/tcl/util.t}; export TCLUTIL +DUMMY=${TCLUTIL=$STESTDIR/tcl/util.t}; export TCLUTIL DUMMY=${LOCAL_MAKE_KEYTAB=$TESTDIR/scripts/make-host-keytab.pl} PATH=$ADMIN:$BIN:$ETC:$SBIN:$PATH; export PATH @@ -52,13 +58,13 @@ fi sed -e "s/__REALM__/$REALM/g" -e "s#__K5ROOT__#$K5ROOT#g" \ -e "s/__KDCHOST__/localhost/g" \ - < $TESTDIR/proto/krb5.conf.proto > $K5ROOT/krb5.conf + < $STESTDIR/proto/krb5.conf.proto > $K5ROOT/krb5.conf sed -e "s/__REALM__/$REALM/g" -e "s#__K5ROOT__#$K5ROOT#g" \ - < $TESTDIR/proto/kdc.conf.proto > $K5ROOT/kdc.conf + < $STESTDIR/proto/kdc.conf.proto > $K5ROOT/kdc.conf kdb5_util -r $REALM create -P mrroot -s $REDIRECT -cp $TESTDIR/proto/ovsec_adm.dict $K5ROOT/ovsec_adm.dict +cp $STESTDIR/proto/ovsec_adm.dict $K5ROOT/ovsec_adm.dict eval $SRVTCL <<'EOF' $REDIRECT source $env(TCLUTIL) |
