--- buildman/install 2025/01/21 20:01:34 1.2 +++ buildman/install 2025/01/21 20:59:13 1.5 @@ -18,7 +18,7 @@ PROGN=`basename $0` -if [ $EUID -ne 0 ] +if [ $UID -ne 0 ] then echo "$PROGN error: must run as root" exit 1 @@ -47,7 +47,7 @@ fi tmphost=`echo ${THOST} | cut -d. -f1` THOST="${tmphost}" -if [ "$OS" == "SunOS" ] +if [ "$OS" = "SunOS" ] then BUILDMAN_BASE="/export/home/build" else @@ -76,7 +76,8 @@ do m) BUILDMAN_MASTER="${OPTARG}" - + ;; + esac done @@ -94,6 +95,7 @@ install -o ${T_UID} -g ${T_GID} -m 750 b DEF="/etc/default/bm" + echo "BUILDMAN_BASE=${BUILDMAN_BASE}" > "${DEF}" echo "BUILDMAN_UID=${T_UID}" >> "${DEF}" echo "BUILDMAN_GID=${T_GID}" >> "${DEF}"