summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rhnop-server/Makefile2
-rwxr-xr-xrhnop-server/debian/postinst2
-rwxr-xr-xrhnop-server/debian/rules1
3 files changed, 3 insertions, 2 deletions
diff --git a/rhnop-server/Makefile b/rhnop-server/Makefile
index a0a9f64..e7976fc 100644
--- a/rhnop-server/Makefile
+++ b/rhnop-server/Makefile
@@ -87,7 +87,7 @@ install-lib:
install-etc:
$(INSTALL) -d $(DESTDIR)$(ETCDIR)/rhnop
- $(INSTALL) -m 600 nopsyncd.conf $(DESTDIR)$(ETCDIR)/rhnop
+ $(INSTALL) -m 640 nopsyncd.conf $(DESTDIR)$(ETCDIR)/rhnop
uninstall: remove
diff --git a/rhnop-server/debian/postinst b/rhnop-server/debian/postinst
index b3b5815..4b5c141 100755
--- a/rhnop-server/debian/postinst
+++ b/rhnop-server/debian/postinst
@@ -5,5 +5,5 @@ set -e
if [ "$1" = "configure" ]; then
adduser --quiet --system --group --no-create-home --home /var/run/rhnop rhnop
- chown rhnop /etc/rhnop/nopsyncd.conf
+ chgrp rhnop /etc/rhnop/nopsyncd.conf
fi
diff --git a/rhnop-server/debian/rules b/rhnop-server/debian/rules
index 489184b..83983e1 100755
--- a/rhnop-server/debian/rules
+++ b/rhnop-server/debian/rules
@@ -50,6 +50,7 @@ binary-arch: install
dh_strip
dh_compress
dh_fixperms
+ chmod 640 debian/rhnop-server/etc/rhnop/nopsyncd.conf
dh_installdeb
dh_shlibdeps
dh_gencontrol