From 779f3d8109f8f67a19eb5c8dc0c8fa2b1e7a70e0 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Thu, 18 Aug 2016 23:09:10 -0400 Subject: [PATCH] Fix file permissions with initialize-urandom element We overlooked setting up the proper permission on both our initialize-urandom python and systemd scripts. Change-Id: I6da27a049954961c9333ebeb48382f8b175dc2d9 Signed-off-by: Paul Belanger --- .../initialize-urandom/post-install.d/80-initialize-urandom | 1 + .../static/usr/local/bin/initialize-urandom.py | 0 2 files changed, 1 insertion(+) mode change 100644 => 100755 nodepool/elements/initialize-urandom/static/usr/local/bin/initialize-urandom.py diff --git a/nodepool/elements/initialize-urandom/post-install.d/80-initialize-urandom b/nodepool/elements/initialize-urandom/post-install.d/80-initialize-urandom index b9920ba4ca..6174349ce6 100755 --- a/nodepool/elements/initialize-urandom/post-install.d/80-initialize-urandom +++ b/nodepool/elements/initialize-urandom/post-install.d/80-initialize-urandom @@ -8,6 +8,7 @@ set -o pipefail case "$DIB_INIT_SYSTEM" in systemd) + sudo chmod 0644 /usr/lib/systemd/system/initialize-urandom.service systemctl enable initialize-urandom.service ;; *) diff --git a/nodepool/elements/initialize-urandom/static/usr/local/bin/initialize-urandom.py b/nodepool/elements/initialize-urandom/static/usr/local/bin/initialize-urandom.py old mode 100644 new mode 100755