network/radicale: Add user/group to README, slackbuild.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Ruben Schuller 2022-12-11 00:22:31 +01:00 committed by Willy Sudiarto Raharjo
parent 5c326ace76
commit 1a40b92cb4
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 26 additions and 0 deletions

View file

@ -5,3 +5,9 @@ distant accessess for reading, creating, modifying and deleting
multiple calendars through a simplified CalDAV protocol. Data can be
encrypted by SSL, and their access can be restricted thanks to
different authentication methods.
You need a "radicale" user and group prior to building radicale.
Something like this will suffice for most systems:
groupadd -g 375 radicale
useradd -u 375 -d /var/lib/radicale -s /bin/false -g radicale radicale

View file

@ -50,6 +50,9 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
RADICALE_GID=${RADICALE_GID:-375}
RADICALE_UID=${RADICALE_UID:-375}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
@ -66,6 +69,23 @@ fi
set -e
if ! getent passwd radicale 1>/dev/null 2>/dev/null; then
cat << EOF
You must have a radicale user to run this script
# groupadd -g $RADICALE_GID radicale
# useradd -u $RADICALE_UID -d /var/lib/$PRGNAM -s /bin/false -g radicale radicale
EOF
exit 1
elif ! getent group radicale 1>/dev/null 2>/dev/null; then
cat << EOF
You must have a radicale group to run this script
# groupadd -g $RADICALE_GID radicale
EOF
exit 1
fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP