summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-10-25 12:46:11 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-10-25 12:46:11 +0000
commit93f0376c14b28cfc96059c151fadc83bc8890b86 (patch)
treee891c2757f76743998e56d6f6903a9c22d7cebee /Makefile
parentAdding note about help for individual commands in container-shell program. (diff)
downloadcompute-tools-93f0376c14b28cfc96059c151fadc83bc8890b86.tar.xz
compute-tools-93f0376c14b28cfc96059c151fadc83bc8890b86.zip
Using sudo in container-shell.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0b67c50..94289f2 100644
--- a/Makefile
+++ b/Makefile
@@ -69,6 +69,10 @@ install: build
mkdir -p $(DESTDIR)/usr/share/bash-completion/completions
cp -r share/bash-completion/* $(DESTDIR)/usr/share/bash-completion/completions
+ mkdir -p $(DESTDIR)/etc/sudoers.d
+ cp -r share/sudo/* $(DESTDIR)/etc/sudoers.d
+ chmod 0440 $(DESTDIR)/etc/sudoers.d/*
+
mkdir -p $(DESTDIR)/usr/share/doc
cp -r share/doc $(DESTDIR)/usr/share/doc/$(SOFTWARE)
@@ -124,6 +128,11 @@ uninstall:
rm -f $(DESTDIR)/usr/share/man/man1/cntsh.1
rm -f ${DESTDIR}/usr/share/bash-completion/completions/cnt
+ for FILE in share/sudo/*; \
+ do \
+ rm -f $(DESTDIR)/etc/sudoers.d/$$(basename $${FILE}); \
+ done
+
for FILE in share/bash-completion/*; \
do \
rm -f $(DESTDIR)/usr/share/bash-completion/completions/$$(basename $${FILE}); \