Commit c6286afc authored by Guido Trotter's avatar Guido Trotter
Browse files

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
parent 0a66c968
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment