Permalink
Browse files

make install: do install sudoers rules

  • Loading branch information...
1 parent 99ec0ed commit e0549e24593f4bcae729b5800281f5dcf2b66afc @tuxofil tuxofil committed Oct 3, 2012
Showing with 13 additions and 2 deletions.
  1. +11 −2 Makefile
  2. +2 −0 sudoers
View
@@ -1,17 +1,26 @@
-.PHONY: install uninstall clean
+.PHONY: install uninstall clean sudoers
-install:
+install: sudoers
install --mode=755 --directory /etc/yabs
install --mode=644 repo.list /etc/yabs
install --mode=755 yabs-worker.sh /usr/sbin/yabs-worker
install --mode=755 yabs.sh /usr/bin/yabs
+ install --mode=755 --directory /etc/sudoers.d
+ install --mode=440 sudoers /etc/sudoers.d/yabs
uninstall:
rm --recursive --force \
/etc/yabs \
+ /etc/sudoers.d/yabs \
/usr/bin/yabs \
/usr/sbin/yabs-worker
+sudoers:
+ mkdir --parents /etc/sudoers.d
+ grep --quiet --extended-regexp \
+ '^#includedir\s+/etc/sudoers.d/?$' /etc/sudoers ||
+ echo '#includedir /etc/sudoers.d' >> /etc/sudoers
+
clean:
find . -name '*~' -delete
View
@@ -0,0 +1,2 @@
+jenkins ALL=NOPASSWD: /usr/sbin/yabs-worker
+jenkins ALL=NOPASSWD: /usr/bin/createrepo

0 comments on commit e0549e2

Please sign in to comment.