Diff for /buildman/install between versions 1.4 and 1.6

version 1.4, 2025/01/21 20:52:51 version 1.6, 2025/01/21 21:14:49
Line 18 Line 18
   
 PROGN=`basename $0`  PROGN=`basename $0`
   
 if [ $UID -ne 0 ]  if [ "$UID" != "0" ]
 then  then
     echo "$PROGN error:  must run as root"      echo "$PROGN error:  must run as root"
     exit 1      exit 1
Line 76  do Line 76  do
   
         m)          m)
             BUILDMAN_MASTER="${OPTARG}"              BUILDMAN_MASTER="${OPTARG}"
               ;;
           
     esac      esac
 done  done
   
Line 89  T_GID=`echo ${TGROUP} | cut -d: -f2` Line 90  T_GID=`echo ${TGROUP} | cut -d: -f2`
 groupadd -g ${T_GID} ${T_GRPNAM}  groupadd -g ${T_GID} ${T_GRPNAM}
 useradd -u ${T_UID} -g ${T_GRPNAM} -c "BuildMan" -m -d "${BUILDMAN_BASE}" "${T_LOGIN}"  useradd -u ${T_UID} -g ${T_GRPNAM} -c "BuildMan" -m -d "${BUILDMAN_BASE}" "${T_LOGIN}"
   
 install -o ${T_UID} -g ${T_GID} -m 750 bm "${INSTALL_BASE}/sbin/bm"  install -u ${T_UID} -g ${T_GID} -m 750 bm "${INSTALL_BASE}/sbin/bm"
 install -o ${T_UID} -g ${T_GID} -m 750 bma "${INSTALL_BASE}/sbin/bma"  install -u ${T_UID} -g ${T_GID} -m 750 bma "${INSTALL_BASE}/sbin/bma"
   
 DEF="/etc/default/bm"  DEF="/etc/default/bm"
   

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


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