--- buildman/install 2025/01/21 20:52:51 1.4 +++ buildman/install 2025/01/21 22:41:22 1.9 @@ -18,11 +18,11 @@ PROGN=`basename $0` -if [ $UID -ne 0 ] -then - echo "$PROGN error: must run as root" - exit 1 -fi +#if [ "$UID" != "0" ] +#then +# echo "$PROGN error: must run as root" +# exit 1 +#fi TARGET="client" TUSER="build:6000" @@ -76,7 +76,8 @@ do m) BUILDMAN_MASTER="${OPTARG}" - + ;; + esac done @@ -96,6 +97,8 @@ DEF="/etc/default/bm" echo "BUILDMAN_BASE=${BUILDMAN_BASE}" > "${DEF}" +echo "BUILDMAN_USER=${T_LOGIN}" >> "${DEF}" +echo "BUILDMAN_GROUP=${T_GRPNAM}" >> "${DEF}" echo "BUILDMAN_UID=${T_UID}" >> "${DEF}" echo "BUILDMAN_GID=${T_GID}" >> "${DEF}" echo "BUILDMAN_MASTER=${BUILDMAN_MASTER}" >> "${DEF}"