diff options
author | Jose V Beneyto <joberui@ei.upv.es> | 2007-05-15 02:09:31 +0200 |
---|---|---|
committer | Jose V Beneyto <joberui@ei.upv.es> | 2007-05-15 02:10:34 +0200 |
commit | 6e23beccfb08257d38762ccc799a3621bacb743e (patch) | |
tree | 9f91f51fa89e82bf8f79fa0c19429b4188c06228 /mldonkey/post-install | |
parent | c4aab2075647bbe4a7e68a1ec11ca0e70986c698 (diff) | |
download | contrib-6e23beccfb08257d38762ccc799a3621bacb743e.tar.gz contrib-6e23beccfb08257d38762ccc799a3621bacb743e.tar.xz |
mldonkey: Updated to 2.8.5 and ported to be used as daemon.
Diffstat (limited to 'mldonkey/post-install')
-rwxr-xr-x | mldonkey/post-install | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mldonkey/post-install b/mldonkey/post-install new file mode 100755 index 000000000..d3320ae9c --- /dev/null +++ b/mldonkey/post-install @@ -0,0 +1,13 @@ +#!/bin/sh + +# check for mlusers group or add one if not exists +/usr/bin/getent group mlusers || /usr/sbin/groupadd mlusers + +# check for mldonkey user or add one +/usr/bin/getent passwd mldonkey || \ + /usr/sbin/useradd -g mlusers -m -d /var/mlnet mldonkey + +# lock the account +/usr/bin/passwd -l mldonkey + +# End of File |