mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
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:
parent
5c326ace76
commit
1a40b92cb4
2 changed files with 26 additions and 0 deletions
|
@ -5,3 +5,9 @@ distant accessess for reading, creating, modifying and deleting
|
||||||
multiple calendars through a simplified CalDAV protocol. Data can be
|
multiple calendars through a simplified CalDAV protocol. Data can be
|
||||||
encrypted by SSL, and their access can be restricted thanks to
|
encrypted by SSL, and their access can be restricted thanks to
|
||||||
different authentication methods.
|
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
|
||||||
|
|
|
@ -50,6 +50,9 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
RADICALE_GID=${RADICALE_GID:-375}
|
||||||
|
RADICALE_UID=${RADICALE_UID:-375}
|
||||||
|
|
||||||
if [ "$ARCH" = "i586" ]; then
|
if [ "$ARCH" = "i586" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
|
@ -66,6 +69,23 @@ fi
|
||||||
|
|
||||||
set -e
|
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
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
|
|
Loading…
Reference in a new issue