summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose V Beneyto <sepen@users.sourceforge.net>2008-01-15 19:01:31 +0100
committerJose V Beneyto <sepen@users.sourceforge.net>2008-01-15 19:01:31 +0100
commit3e95970df3d20acec23d9c4191e312664db9282e (patch)
tree498af1441371417649ab0ada2de738cef3a58769
parent4d9030bc0ceef001a3ea0d7b9955491741510422 (diff)
downloadcontrib-3e95970df3d20acec23d9c4191e312664db9282e.tar.gz
contrib-3e95970df3d20acec23d9c4191e312664db9282e.tar.xz
mldonkey: Fixed absoluted paths in 'post-install' script.
-rwxr-xr-xmldonkey/post-install9
1 files changed, 5 insertions, 4 deletions
diff --git a/mldonkey/post-install b/mldonkey/post-install
index 2ae6c01d8..cb980de24 100755
--- a/mldonkey/post-install
+++ b/mldonkey/post-install
@@ -6,15 +6,16 @@ MLPATH=/var/mlnet
# check for mlusers group or add one if not exists
-getent group $MLGROUP || groupadd $MLGROUP
+/usr/bin/getent group $MLGROUP || /usr/sbin/groupadd $MLGROUP
# check for mldonkey user or add one
-getent passwd $MLUSER || useradd -g $MLGROUP -m -d $MLPATH $MLUSER
+/usr/bin/getent passwd $MLUSER || /usr/sbin/useradd -g $MLGROUP -m -d $MLPATH $MLUSER
# lock the account
-passwd -l $MLUSER
+/usr/bin/passwd -l $MLUSER
# setup bitperms
-chmod 0775 $MLPATH
+/bin/chmod 0775 $MLPATH
+/bin/chown root.$MLGROUP $MLPATH
# End of file

Generated by cgit