contrib/mldonkey/post-install
Jose V Beneyto 46a52e6b87 Revert "Revert "mldonkey: Updated 2.9.2 -> 2.9.3""
This reverts commit 50a4307b2e650dae78a1f64fce534db9d22638c1.
2008-01-25 02:48:37 +01:00

23 lines
474 B
Bash
Executable File

#!/bin/sh
MLUSER=mldonkey
MLGROUP=mlusers
MLPATH=/var/mlnet
# check for mlusers group or add one if not exists
/usr/bin/getent group $MLGROUP || /usr/sbin/groupadd $MLGROUP
# check for mldonkey user or add one
/usr/bin/getent passwd $MLUSER || /usr/sbin/useradd -g $MLGROUP -m -d $MLPATH $MLUSER
# lock the account
/usr/bin/passwd -l $MLUSER
# setup bitperms
[ ! -d $MLPATH ] && mkdir -p $MLPATH
/bin/chmod 0775 $MLPATH
/bin/chown root.$MLGROUP $MLPATH
# End of file