summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Tennis <caleb@gentoo.org>2008-04-13 22:02:40 +0000
committerCaleb Tennis <caleb@gentoo.org>2008-04-13 22:02:40 +0000
commit3abf362d47f8f5ac98a824e0c91b5fec63cfe216 (patch)
tree24a5c32c9ef0fc5fd317b0ebf6e6d3b20c9cb5da /net-im/ejabberd/files
parentRemove old version. (diff)
downloadgentoo-2-3abf362d47f8f5ac98a824e0c91b5fec63cfe216.tar.gz
gentoo-2-3abf362d47f8f5ac98a824e0c91b5fec63cfe216.tar.bz2
gentoo-2-3abf362d47f8f5ac98a824e0c91b5fec63cfe216.zip
Update homepage and self-cert-v2.sh from bug #207586
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-im/ejabberd/files')
-rwxr-xr-xnet-im/ejabberd/files/self-cert-v2.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/net-im/ejabberd/files/self-cert-v2.sh b/net-im/ejabberd/files/self-cert-v2.sh
index b9bd0aef3c6b..b2f3b7dadd5e 100755
--- a/net-im/ejabberd/files/self-cert-v2.sh
+++ b/net-im/ejabberd/files/self-cert-v2.sh
@@ -23,8 +23,8 @@ then
fi
cp /dev/null $pemfile
-chmod 600 $pemfile
-chown root $pemfile
+chmod 640 $pemfile
+chown root:jabber $pemfile
cleanup() {
rm -f $pemfile
@@ -38,3 +38,4 @@ dd if=/dev/urandom of=$randfile count=1 2>/dev/null
/usr/bin/openssl gendh -rand $randfile 512 >> $pemfile || cleanup
/usr/bin/openssl x509 -subject -dates -fingerprint -noout -in $pemfile || cleanup
rm -f $randfile
+