From: Thilo Fromm Date: Thu, 25 Apr 2013 14:14:27 +0000 (+0200) Subject: storage_deploy.sh: fix access rights to rsa file X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=2f77f2ec389fcac18f2fcdaee99c2d9ed6db4c5f;p=profitbricks%2Fjenkins-build-scripts.git storage_deploy.sh: fix access rights to rsa file Signed-off-by: Thilo Fromm --- 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; }