Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Commit

Permalink
Hopefully allow sudo passwordless access for www-data for chilli_quer…
Browse files Browse the repository at this point in the history
…y command
  • Loading branch information
timwhite committed Oct 8, 2014
1 parent 5962294 commit 1a3e657
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions debian/grase-www-portal.install
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
files/* /
sudo/grase-www-portal /etc/sudoers.d/grase-www-portal
6 changes: 6 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -26,3 +28,7 @@ build-stamp:
dh_testdir
$(MAKE)
touch $@

override_dh_fixperms:
dh_fixperms
chmod 0440 etc/sudoers.d/grase-www-portal
1 change: 1 addition & 0 deletions sudo/grase-www-portal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
www-data ALL = NOPASSWD: /usr/sbin/chilli_query

0 comments on commit 1a3e657

Please sign in to comment.