Diff for /buildman/install between versions 1.2 and 1.4

version 1.2, 2025/01/21 20:01:34 version 1.4, 2025/01/21 20:52:51
Line 18 Line 18
   
 PROGN=`basename $0`  PROGN=`basename $0`
   
 if [ $EUID -ne 0 ]  if [ $UID -ne 0 ]
 then  then
     echo "$PROGN error:  must run as root"      echo "$PROGN error:  must run as root"
     exit 1      exit 1
Line 47  fi Line 47  fi
 tmphost=`echo ${THOST} | cut -d. -f1`  tmphost=`echo ${THOST} | cut -d. -f1`
 THOST="${tmphost}"  THOST="${tmphost}"
   
 if [ "$OS" == "SunOS" ]  if [ "$OS" = "SunOS" ]
 then  then
     BUILDMAN_BASE="/export/home/build"      BUILDMAN_BASE="/export/home/build"
 else      else    
Line 94  install -o ${T_UID} -g ${T_GID} -m 750 b Line 94  install -o ${T_UID} -g ${T_GID} -m 750 b
   
 DEF="/etc/default/bm"  DEF="/etc/default/bm"
   
   
 echo "BUILDMAN_BASE=${BUILDMAN_BASE}" > "${DEF}"  echo "BUILDMAN_BASE=${BUILDMAN_BASE}" > "${DEF}"
 echo "BUILDMAN_UID=${T_UID}" >> "${DEF}"  echo "BUILDMAN_UID=${T_UID}" >> "${DEF}"
 echo "BUILDMAN_GID=${T_GID}" >> "${DEF}"  echo "BUILDMAN_GID=${T_GID}" >> "${DEF}"

Removed from v.1.2  
changed lines
  Added in v.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>