system/fcron: Remove FCRON_UID and FCRON_GID.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
186d63d961
commit
8b88cf6987
|
@ -24,26 +24,24 @@
|
|||
|
||||
PRGNAM=fcron
|
||||
VERSION=${VERSION:-3.2.1}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Select fcron's default user/group
|
||||
FCRON_USER=${FCRON_USER:-fcron}
|
||||
FCRON_UID=${FCRON_UID:-289}
|
||||
FCRON_GROUP=${FCRON_GROUP:-fcron}
|
||||
FCRON_GID=${FCRON_GID:-289}
|
||||
|
||||
if ! getent group $FCRON_GROUP >/dev/null; then
|
||||
echo "Error, the group $FCRON_GROUP does not exist."
|
||||
echo "Create the group and user like this:"
|
||||
echo " groupadd -g $FCRON_GID $FCRON_GROUP"
|
||||
echo " useradd -u $FCRON_UID -g $FCRON_GROUP -d /var/spool/fcron -M -s /bin/false $FCRON_USER"
|
||||
echo " groupadd -g 289 $FCRON_GROUP"
|
||||
echo " useradd -u 289 -g $FCRON_GROUP -d /var/spool/fcron -M -s /bin/false $FCRON_USER"
|
||||
exit 1
|
||||
fi
|
||||
if ! getent passwd $FCRON_USER >/dev/null; then
|
||||
echo "Error, the userid $FCRON_USER does not exist."
|
||||
echo "Create the user like this:"
|
||||
echo " useradd -u $FCRON_UID -g $FCRON_GROUP -d /var/spool/fcron -M -s /bin/false $FCRON_USER"
|
||||
echo " useradd -u 289 -g $FCRON_GROUP -d /var/spool/fcron -M -s /bin/false $FCRON_USER"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue