Преглед на файлове

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 преди 8 години
родител
ревизия
2298cf1dd0
променени са 1 файла, в които са добавени 2 реда и са изтрити 4 реда
  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