--- buildman/install 2025/03/11 18:31:25 1.10 +++ buildman/install 2025/03/11 18:34:39 1.11 @@ -28,7 +28,7 @@ TARGET="client" TUSER="build:6000" TGROUP="build:6000" BUILDMAN_MASTER="" -INSTALL_BASE="/usr/local/bin" +INSTALL_BASE="/usr/local" OS=`uname` @@ -92,6 +92,7 @@ do echo " is the group name owning the files for buildman" echo " is the numeric GID of the group owning the buildman files" echo " is the primary buildman host, supplied as IP address or FQDN" + echo "" exit 0 ;; esac @@ -102,12 +103,18 @@ T_UID=`echo ${TUSER} | cut -d: -f2` T_GRPNAM=`echo ${TGROUP} | cut -d: -f1` T_GID=`echo ${TGROUP} | cut -d: -f2` +BIN_BASE="${INSTALL_BASE}/bin" + +if [ ! -d "${BIN_BASE}" ] +then + mkdir -p "${BIN_BASE}" +fi groupadd -g ${T_GID} ${T_GRPNAM} 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}/bm" -install -o ${T_UID} -g ${T_GID} -m 750 bma "${INSTALL_BASE}/bma" +install -o ${T_UID} -g ${T_GID} -m 750 bm "${BIN_BASE}/bm" +install -o ${T_UID} -g ${T_GID} -m 750 bma "${BIN_BASE}/bma" DEF="/etc/default/bm"