Skip to content
Snippets Groups Projects
Commit 747c9ca9 authored by Guido Trotter's avatar Guido Trotter
Browse files

devel/upload: add --no-debug option


When this option is used the /etc/defaults/ganeti file, which sets all
the daemons in debug mode, is not copied.

Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 17f25f78
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ PKGLIBDIR='@PKGLIBDIR@'
NO_RESTART=
NO_CRON=
NO_DEBUG=
hosts=
while [ "$#" -gt 0 ]; do
opt="$1"
......@@ -43,6 +44,9 @@ while [ "$#" -gt 0 ]; do
--no-cron)
NO_CRON=1
;;
--no-debug)
NO_DEBUG=1
;;
-h|--help)
echo "Usage: $0 [--no-restart] hosts..."
exit 0
......@@ -78,7 +82,7 @@ make $make_args install DESTDIR="$TXD"
install -D --mode=0755 doc/examples/ganeti.initd \
"$TXD/$SYSCONFDIR/init.d/ganeti"
[ -f doc/examples/ganeti.default-debug ] && \
[ -f doc/examples/ganeti.default-debug -a -z "$NO_DEBUG" ] && \
install -D --mode=0644 doc/examples/ganeti.default-debug \
"$TXD/$SYSCONFDIR/default/ganeti"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment