--no-restart)
NO_RESTART=1
;;
+ -h|--help)
+ echo "Usage: $0 [--no-restart] hosts..."
+ exit 0
+ ;;
-*)
echo "Unknown option: $opt" >&2
exit 1
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