X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/f63eed3550221347c6bcb200e69da76a20121584..55efe6dabe48e5c37dc1ff6099e0bb8afde7a468:/devel/upload.in diff --git a/devel/upload.in b/devel/upload.in index b408a7b..94759e6 100644 --- a/devel/upload.in +++ b/devel/upload.in @@ -35,6 +35,10 @@ while [ "$#" -gt 0 ]; do --no-restart) NO_RESTART=1 ;; + -h|--help) + echo "Usage: $0 [--no-restart] hosts..." + exit 0 + ;; -*) echo "Unknown option: $opt" >&2 exit 1 @@ -71,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