pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

gnunet: rc.d changes



Module Name:	pkgsrc-wip
Committed By:	ng0 <ng0%n0.is@localhost>
Pushed By:	ng0
Date:		Fri Mar 1 11:48:16 2019 +0000
Changeset:	b4e0ea6742568e52664e74ee5d6849a4b880c10c

Modified Files:
	gnunet/files/gnunet.in

Log Message:
gnunet: rc.d changes

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b4e0ea6742568e52664e74ee5d6849a4b880c10c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 gnunet/files/gnunet.in | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diffs:
diff --git a/gnunet/files/gnunet.in b/gnunet/files/gnunet.in
index 09c42830a0..4d23799f30 100755
--- a/gnunet/files/gnunet.in
+++ b/gnunet/files/gnunet.in
@@ -37,15 +37,13 @@ gnunet_env="${gnunet_env} USER=${gnunet_user}"
 
 gnunet_precmd()
 {
-	if [ -n "$(find @PKG_HOME@/.local/share/gnunet -maxdepth 1 -name gnunet.conf -perm 0044)" ]; then
-		warn "@PKG_HOME@/.local/share/gnunet/gnunet.conf"
-		warn "must not be world or group readable, use"
-		warn "chmod 600" 
-		warn "and chown @GNUNET_USER@:@GNUNET_GROUP@"
-		return 1
+	if [ -f ${gnunet_home}/.local/share/gnunet/gnunet.conf ]; then
+		@CHMOD@ 0600 @PKG_HOME@/.local/share/gnunet/gnunet.conf
+		@CHOWN@ @GNUNET_USER@:@GNUNET_GROUP@ @PKG_HOME@/.local/share/gnunet/gnunet.conf
 	fi
 	if [ ! -d ${gnunet_home}/.cache/gnunet ]; then
-		mkdir -p ${gnunet_home}/.cache/gnunet
+		@MKDIR@ -p ${gnunet_home}/.cache/gnunet
+		@CHOWN@ @GNUNET_USER@:@GNUNET_GROUP@ ${gnunet_home}/.cache/gnunet
 	fi
 	if [ ! -f ${required_files} ]; then
 		warn "${required_files} does not exist."


Home | Main Index | Thread Index | Old Index