Explorar o código

Merge pull request #9828 from Michael-Gardner/HPCC-17079

HPCC-17079 Removed unnecessary chown in hpcc-init

Reviewed-By: Xiaoming Wang <xiaoming.wang@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman %!s(int64=8) %!d(string=hai) anos
pai
achega
2298cf1dd0
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      initfiles/bash/etc/init.d/hpcc-init.in

+ 2 - 4
initfiles/bash/etc/init.d/hpcc-init.in

@@ -139,9 +139,6 @@ fi
 
 check_getopt
 
-#changing ownership of the home directory for user.
-chown -cR $user:$group ${home}/${user} 1>/dev/null 2>/dev/null
-
 basepath=`pwd`
 
 COMPS=$(${configgen_path}/configgen -env ${envfile} -list)
@@ -278,7 +275,8 @@ log "Debug log written to $LOG_DIR/hpcc-init.debug"
 [ -e $LOG_DIR/hpcc-init.debug ] && rm -rf ${LOG_DIR}/hpcc-init.debug
 touch ${LOG_DIR}/hpcc-init.debug
 chown ${user}:${group} ${LOG_DIR}/hpcc-init.debug
-exec 2>$LOG_DIR/hpcc-init.debug
+PS4='+\011$(date "+%T.%N")\011'
+exec 3>&2 2>$LOG_DIR/hpcc-init.debug
 set -x
 
 if [ -z ${component} ]; then