summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/ld4-inst4
1 files changed, 2 insertions, 2 deletions
diff --git a/installer/ld4-inst b/installer/ld4-inst
index 2a3156d5..dd053ea3 100755
--- a/installer/ld4-inst
+++ b/installer/ld4-inst
@@ -374,8 +374,8 @@ setup_server () {
set -- $cfile
# check if file changed
- lastfile=`ls -lt ${dxs_conf}/${1}* | sed -n "2,2s/.*${1}/${1}/p"`
- ! [ -z $lastfile ] && diff ${dxs_conf}/${1}-${timestamp} ${lastfile} >/dev/null
+ lastfile=`ls -lt ${dxs_conf}/${1}* | sed -n "2,2s%.*"${1}"%"${1}"%p"`
+ ! [ -z $lastfile ] && diff ${dxs_conf}/${1}-${timestamp} ${dxs_conf}/${lastfile} >/dev/null
if [ $? -eq 0 ] ; then
echo "Configuration file ${2} didn't change - leaving unchanged"
rm ${dxs_conf}/${1}-${timestamp}