summaryrefslogtreecommitdiffstats
path: root/share/hooks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-07-27 00:53:38 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-07-27 00:53:38 +0000
commitbb9b455e970c80cb438cb842ec9ce00f886e0fda (patch)
treee9af1550e5fbda93bef728c8e3b23db0bde945da /share/hooks
parentSupporting /etc/compute-tools/container.conf.d. (diff)
downloadcompute-tools-bb9b455e970c80cb438cb842ec9ce00f886e0fda.tar.xz
compute-tools-bb9b455e970c80cb438cb842ec9ce00f886e0fda.zip
Adding boliderplate variables in post-start.chown-nvidia.sh example hook for consistency.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'share/hooks')
-rwxr-xr-xshare/hooks/post-start.chown-nvidia.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/hooks/post-start.chown-nvidia.sh b/share/hooks/post-start.chown-nvidia.sh
index 64c02cc..2a99bd3 100755
--- a/share/hooks/post-start.chown-nvidia.sh
+++ b/share/hooks/post-start.chown-nvidia.sh
@@ -19,6 +19,10 @@
set -e
+PROJECT="open-infrastructure"
+SOFTWARE="compute-tools"
+PROGRAM="container"
+
CONTAINER="/var/lib/machines"
if grep -qs nvidia "${CONTAINER}/${NAME}/etc/group"