stop_servers_local: Use temp files rather than a here document to
provide input to eval'ed commands; Ultrix sh is broken wrt here
documents redirected to eval commands.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9382
dc483132-0cff-0310-8789-
dd5450dbe970
Mon Nov 11 14:25:15 1996 Tom Yu <tlyu@mit.edu>
+ * init_db, save_files.sh, start_servers_local, stop_servers,
+ stop_servers_local: Use temp files rather than a here document to
+ provide input to eval'ed commands; Ultrix sh is broken wrt here
+ documents redirected to eval commands.
+
* start_servers, start_servers_local, init_db: Use ${FOO+bar} and
${FOO=baz} rather than ${FOO:+bar} and ${FOO:=baz} because of
Ultrix /bin/sh lossage.
cp $STESTDIR/proto/ovsec_adm.dict $K5ROOT/ovsec_adm.dict
-eval $SRVTCL <<'EOF' $REDIRECT
+cat - > /tmp/init_db$$ <<\EOF
source $env(TCLUTIL)
set r $env(REALM)
if {[info exists env(USER)]} {
}
}
EOF
+eval "$SRVTCL < /tmp/init_db$$ $REDIRECT"
+rm /tmp/init_db$$
if [ $? -ne 0 ]; then
echo "Error in $SRVTCL!" 1>&2
done
# If it's set, set it to true
-VERBOSE=${VERBOSE_TEST:+true}
+VERBOSE=${VERBOSE_TEST+true}
# Otherwise, set it to false
-DUMMY=${VERBOSE:=false}
+DUMMY=${VERBOSE=false}
# files="/etc/inetd.conf /etc/syslog.conf /etc/krb.conf \
# /etc/krb.realms /etc/passwd /etc/services /etc/v5srvtab \
hostname=`hostname`
QUALNAME=`$TOP/testing/scripts/qualname.pl $hostname`; export QUALNAME
-eval $SRVTCL <<'EOF' $REDIRECT
+cat - > /tmp/start_servers_local$$ <<\EOF
source $env(STOP)/testing/tcl/util.t
set r $env(REALM)
set q $env(QUALNAME)
[simple_principal host/$q@$r] {OVSEC_KADM_PRINCIPAL} notathena]
puts stdout [ovsec_kadm_destroy $server_handle]
EOF
+eval "$SRVTCL < /tmp/start_servers_local$$ $REDIRECT"
+rm /tmp/start_servers_local$$
# rm -f /etc/v5srvtab
# eval $LOCAL_MAKE_KEYTAB -princ host/xCANONHOSTx /etc/v5srvtab $REDIRECT
DUMMY=${RESTORE_FILES=$TESTDIR/scripts/restore_files.sh}
# If it's set, set it to true
-VERBOSE=${VERBOSE_TEST:+true}
+VERBOSE=${VERBOSE_TEST+true}
# Otherwise, set it to false
-DUMMY=${VERBOSE:=false}
+DUMMY=${VERBOSE=false}
local=1
DUMMY=${RESTORE_FILES=$TESTDIR/scripts/restore_files.sh}
# If it's set, set it to true
-VERBOSE=${VERBOSE_TEST:+true}
+VERBOSE=${VERBOSE_TEST+true}
# Otherwise, set it to false
-DUMMY=${VERBOSE:=false}
+DUMMY=${VERBOSE=false}
v4files=false
while [ $# -gt 0 ] ; do
if $v4files; then
$RESTORE_FILES $start_servers
fi
+exit 0