diff options
author | Jon Hood <squinky86@gentoo.org> | 2004-08-04 17:13:05 +0000 |
---|---|---|
committer | Jon Hood <squinky86@gentoo.org> | 2004-08-04 17:13:05 +0000 |
commit | 6312f6759fe9de399e914865582cd4f95b420273 (patch) | |
tree | 095ff755054f2b3c85e756a829b901365e9fea72 /net-p2p | |
parent | fix gtk2 dependency (diff) | |
download | historical-6312f6759fe9de399e914865582cd4f95b420273.tar.gz historical-6312f6759fe9de399e914865582cd4f95b420273.tar.bz2 historical-6312f6759fe9de399e914865582cd4f95b420273.zip |
fix init script; #58331
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/mldonkey/ChangeLog | 5 | ||||
-rw-r--r-- | net-p2p/mldonkey/Manifest | 4 | ||||
-rw-r--r-- | net-p2p/mldonkey/files/mldonkey.initd | 10 |
3 files changed, 16 insertions, 3 deletions
diff --git a/net-p2p/mldonkey/ChangeLog b/net-p2p/mldonkey/ChangeLog index 673b8e1f95ed..61b87cada5b4 100644 --- a/net-p2p/mldonkey/ChangeLog +++ b/net-p2p/mldonkey/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-p2p/mldonkey # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v 1.60 2004/08/04 03:38:24 squinky86 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v 1.61 2004/08/04 17:13:05 squinky86 Exp $ + + 04 Aug 2004; Jon Hood <squinky86@gentoo.org> files/mldonkey.initd: + Fix init script thanks to Antonio <netbix@tiscali.it> in #58331. *mldonkey-2.5.22-r1 (03 Aug 2004) diff --git a/net-p2p/mldonkey/Manifest b/net-p2p/mldonkey/Manifest index f1d4b016d519..83aad6f24333 100644 --- a/net-p2p/mldonkey/Manifest +++ b/net-p2p/mldonkey/Manifest @@ -4,10 +4,10 @@ MD5 f2c214aa5ae25b64b54aef4eee0f0759 mldonkey-2.5.21-r2.ebuild 2668 MD5 d6583fee78f3d381adb044978421f2aa mldonkey-2.5.22-r1.ebuild 2926 MD5 f442072b0c1b3d1ef2680031562b04fb mldonkey-2.5.16-r5.ebuild 2600 MD5 e9cf2cdbc9b9ee541731d598963adac9 mldonkey-2.5.21-r1.ebuild 2694 -MD5 ca303c14f49b1ba7b970c957a64e6f24 ChangeLog 10240 +MD5 186127259967fddea42bf74238315dd1 ChangeLog 10377 MD5 74e4ceef69a9fc3a7a76299e5f4d2ed8 metadata.xml 307 MD5 476ec69e79e7c93a7bdaa6cb049c0857 files/mldonkey.confd 836 -MD5 9d632d54e4484981f81a2a912272f57e files/mldonkey.initd 2543 +MD5 82b5b14a6a5f4773de00355a5b349db1 files/mldonkey.initd 2816 MD5 413e60164538b85e9ba290d64e24e63f files/digest-mldonkey-2.5.16-r5 126 MD5 8cb26fa21496d16cfdf0abf0a88fecf2 files/digest-mldonkey-2.5.16-r6 126 MD5 920f9e5989329dba967bff5a111911a7 files/digest-mldonkey-2.5.16-r7 126 diff --git a/net-p2p/mldonkey/files/mldonkey.initd b/net-p2p/mldonkey/files/mldonkey.initd index 84aa9b3db367..a9064b9401e4 100644 --- a/net-p2p/mldonkey/files/mldonkey.initd +++ b/net-p2p/mldonkey/files/mldonkey.initd @@ -11,6 +11,16 @@ start() { if [ ! -d ${BASEDIR}/${SUBDIR} ] then einfo "Directory ${BASEDIR}/${SUBDIR} not existing, trying to create..." + if [ ! -d ${BASEDIR} ] + then + mkdir -p ${BASEDIR} + chown ${USER}:users ${BASEDIR} + if [ ! -d ${BASEDIR} ] + then + eerror "Directory ${BASEDIR} could not be created!" + return 1 + fi + fi su ${USER} -c "mkdir ${BASEDIR}/${SUBDIR}" if [ ! -d ${BASEDIR}/${SUBDIR} ] then |