From 2f77f2ec389fcac18f2fcdaee99c2d9ed6db4c5f Mon Sep 17 00:00:00 2001 From: Thilo Fromm Date: Thu, 25 Apr 2013 16:14:27 +0200 Subject: [PATCH] storage_deploy.sh: fix access rights to rsa file Signed-off-by: Thilo Fromm --- storage_deploy.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/storage_deploy.sh b/storage_deploy.sh index 47b2f00..9668f8c 100755 --- a/storage_deploy.sh +++ b/storage_deploy.sh @@ -10,6 +10,12 @@ log() { } # ---- +prepare() { + chmod 600 id_rsa.storage-auto-deploy +} +# ---- + + rexec() { local srv="$1" ; shift @@ -116,6 +122,8 @@ main() { local storage_ip="$1" local storage_ipmi="$2" + prepare + log " Resetting $storage_ip and booting from PXE (via $storage_ipmi)" ipmi "$storage_ipmi" chassis bootdev pxe || { log " FAILED to set bootdev pxe via ipmi."; return 1; } ipmi "$storage_ipmi" chassis power reset || { log " FAILED to reset server via ipmi."; return 1; } -- 2.39.5