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
...@@ -33,6 +33,7 @@ PKGLIBDIR='@PKGLIBDIR@' ...@@ -33,6 +33,7 @@ PKGLIBDIR='@PKGLIBDIR@'
NO_RESTART= NO_RESTART=
NO_CRON= NO_CRON=
NO_DEBUG=
hosts= hosts=
while [ "$#" -gt 0 ]; do while [ "$#" -gt 0 ]; do
opt="$1" opt="$1"
...@@ -43,6 +44,9 @@ while [ "$#" -gt 0 ]; do ...@@ -43,6 +44,9 @@ while [ "$#" -gt 0 ]; do
--no-cron) --no-cron)
NO_CRON=1 NO_CRON=1
;; ;;
--no-debug)
NO_DEBUG=1
;;
-h|--help) -h|--help)
echo "Usage: $0 [--no-restart] hosts..." echo "Usage: $0 [--no-restart] hosts..."
exit 0 exit 0
...@@ -78,7 +82,7 @@ make $make_args install DESTDIR="$TXD" ...@@ -78,7 +82,7 @@ make $make_args install DESTDIR="$TXD"
install -D --mode=0755 doc/examples/ganeti.initd \ install -D --mode=0755 doc/examples/ganeti.initd \
"$TXD/$SYSCONFDIR/init.d/ganeti" "$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 \ install -D --mode=0644 doc/examples/ganeti.default-debug \
"$TXD/$SYSCONFDIR/default/ganeti" "$TXD/$SYSCONFDIR/default/ganeti"
......
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