From c6286afca7fd2096e01be430404416626c0c1344 Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Sun, 7 Dec 2008 11:01:55 +0000 Subject: [PATCH] chmod ganeti.initd before uploading it When an upload is done to a node which doesn't have any version of ganeti installed, this prevents a non-executable-initd error later in the upload. Reviewed-by: imsnah --- devel/upload.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/devel/upload.in b/devel/upload.in index 32e553eaf..94759e60f 100644 --- a/devel/upload.in +++ b/devel/upload.in @@ -75,9 +75,11 @@ for host; do done wait +INIT_SCRIPT="$TXD/ganeti.initd" +install --mode=0755 doc/examples/ganeti.initd $INIT_SCRIPT for host; do echo Uploading init script to ${host}... - scp doc/examples/ganeti.initd root@${host}:/etc/init.d/ganeti & + scp $INIT_SCRIPT root@${host}:/etc/init.d/ganeti & done wait -- GitLab