Permalink
Browse files

Hopefully allow sudo passwordless access for www-data for chilli_quer…

…y command
  • Loading branch information...
1 parent 5962294 commit 1a3e657c101b323c97e956f8f8316cc5cb2246be @timwhite timwhite committed Oct 8, 2014
Showing with 8 additions and 0 deletions.
  1. +1 −0 debian/grase-www-portal.install
  2. +6 −0 debian/rules
  3. +1 −0 sudo/grase-www-portal
@@ -1 +1,2 @@
files/* /
+sudo/grase-www-portal /etc/sudoers.d/grase-www-portal
View
@@ -17,6 +17,8 @@ export DH_OPTIONS=-X.git
# These files are installed via dh_install from the files/ directory
# (see debian/grase-conf-monit.install)
+DEB_FIXPERMS_EXCLUDE := /etc/sudoers.d/grase-www-portal
+
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/config-package.mk
@@ -26,3 +28,7 @@ build-stamp:
dh_testdir
$(MAKE)
touch $@
+
+override_dh_fixperms:
+ dh_fixperms
+ chmod 0440 etc/sudoers.d/grase-www-portal
@@ -0,0 +1 @@
+www-data ALL = NOPASSWD: /usr/sbin/chilli_query

0 comments on commit 1a3e657

Please sign in to comment.