version 1.2, 2025/01/21 20:01:34
|
version 1.5, 2025/03/05 17:23:59
|
Line 44 then
|
Line 44 then
|
exit 1 |
exit 1 |
fi |
fi |
|
|
if [ $EUID -ne ${BUILDMAN_UID} ] |
#if [ $EUID -ne ${BUILDMAN_UID} ] |
then |
#then |
echo "${PROGN} error: must be run as user \"${BUILDMAN_USER}\"" |
# echo "${PROGN} error: must be run as user \"${BUILDMAN_USER}\"" |
exit 1 |
# exit 1 |
fi |
#fi |
|
|
ACTION="" |
ACTION="" |
PROJECT="" |
PROJECT="" |
Line 111 done
|
Line 111 done
|
if [ ! -z "${PROJECT}" ] |
if [ ! -z "${PROJECT}" ] |
then |
then |
PROJECT_BASE="${BUILDMAN_BASE}/projects/${PROJECT}" |
PROJECT_BASE="${BUILDMAN_BASE}/projects/${PROJECT}" |
if [ "${ACTION}" == "add" -a ! -d ${PROJECT_BASE} ] |
if [ "${ACTION}" = "add" -a ! -d ${PROJECT_BASE} ] |
then |
then |
echo "$PROGN: creating ${PROJECT} in ${PROJECT_BASE}..." |
echo "$PROGN: creating ${PROJECT} in ${PROJECT_BASE}..." |
mkdir -p "${PROJECT_BASE}" |
mkdir -p "${PROJECT_BASE}" |
Line 119 then
|
Line 119 then
|
|
|
if [ ! -d "${PROJECT_BASE}" ] |
if [ ! -d "${PROJECT_BASE}" ] |
then |
then |
echo "$PROGN error: project ${PROJECT} not defined" |
echo "$PROGN error: project ${PROJECT} not defined [${PROJECT_BASE}]" |
exit 1 |
exit 1 |
fi |
fi |
fi |
fi |
Line 206 case $ACTION in
|
Line 206 case $ACTION in
|
H_VERSION=`echo ${PLSTR} | cut -d: -f3` |
H_VERSION=`echo ${PLSTR} | cut -d: -f3` |
H_ARCH=`echo ${PLSTR} | cut -d: -f4` |
H_ARCH=`echo ${PLSTR} | cut -d: -f4` |
|
|
if [ "${PYES}" == "no" ] |
if [ "${PYES}" = "no" ] |
then |
then |
echo |
echo |
echo "Host Details" |
echo "Host Details" |
Line 221 case $ACTION in
|
Line 221 case $ACTION in
|
read -n 1 -p "OK to create? (y/n) " YORN |
read -n 1 -p "OK to create? (y/n) " YORN |
echo |
echo |
|
|
if [ "${YORN}" == "y" -o "${YORN}" == "Y" ] |
if [ "${YORN}" = "y" -o "${YORN}" = "Y" ] |
then |
then |
CONF=1 |
CONF=1 |
else |
else |