From c9316dece9bc89cfa8601109ec263bd05742ca54 Mon Sep 17 00:00:00 2001 From: Nico Dietrich Date: Tue, 4 Apr 2006 20:04:22 +0000 Subject: next fix git-svn-id: http://svn.openslx.org/svn/openslx/ld4@157 95ad53e4-c205-0410-b2fa-d234c58c8868 --- installer/ld4-inst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'installer/ld4-inst') diff --git a/installer/ld4-inst b/installer/ld4-inst index 93bfcaff..69815d74 100755 --- a/installer/ld4-inst +++ b/installer/ld4-inst @@ -127,11 +127,10 @@ configure() { fi . .config - overwrite_configs="yes" - echo -n "Overwrite server configs (Y) or write *.new files (n)? [Y/n] " - read userinput - if [ "$userinput" = "no" -o "$userinput" = "n" -o \ - "$userinput" = "N" -o "$userinput" = "No" ] ; then + [ -z $overwrite_configs ] && overwrite_configs="y" + ask "Overwrite server configs (Y) or write *.new files (n)? [Y/n] " overwrite_configs $overwrite_configs + if [ "$overwrite_configs" = "no" -o "$overwrite_configs" = "n" -o \ + "$overwrite_configs" = "N" -o "$overwrite_configs" = "No" ] ; then overwrite_configs="no" fi @@ -375,7 +374,7 @@ setup_server () { set -- $cfile # check if file changed - lastfile=`ls -lt ${dxs_conf}/${1}* | awk '{print $8}'| sed -n "2,2p"` + lastfile=`ls -lt ${dxs_conf}/${1}* | sed -n "2,2s/.*${1}/${1}/p"` ! [ -z $lastfile ] && diff ${dxs_conf}/${1}-${timestamp} ${lastfile} >/dev/null if [ $? -eq 0 ] ; then echo "Configuration file ${2} didn't change - leaving unchanged" -- cgit v1.2.3-55-g7522