public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/ganeti/files/
Date: Tue, 12 Jul 2016 00:53:47 +0000 (UTC)	[thread overview]
Message-ID: <1468284822.cf0146e62e96e3be5914437c766e97418f9ff855.robbat2@gentoo> (raw)

commit:     cf0146e62e96e3be5914437c766e97418f9ff855
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 12 00:53:25 2016 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Jul 12 00:53:42 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf0146e6

app-emulation/ganeti: fix bashisms.

Package-Manager: portage-2.2.28

 app-emulation/ganeti/files/ganeti-kvm-poweroff.initd | 4 ++--
 app-emulation/ganeti/files/ganeti.initd-r3           | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app-emulation/ganeti/files/ganeti-kvm-poweroff.initd b/app-emulation/ganeti/files/ganeti-kvm-poweroff.initd
index 487e9e5..af25b24 100644
--- a/app-emulation/ganeti/files/ganeti-kvm-poweroff.initd
+++ b/app-emulation/ganeti/files/ganeti-kvm-poweroff.initd
@@ -35,7 +35,7 @@ stop() {
             break
         fi
 
-        echo -n "."
+        printf "."
         for vm_monitor in $(find $CONTROL_PATH -type s -name '*.monitor') ; do
             if ! echo | socat -U UNIX:$vm_monitor STDIO > /dev/null 2>&1; then
                 rm -rf $vm_monitor
@@ -43,7 +43,7 @@ stop() {
         done
 
         sleep 5
-        let remaining-=5 1
+        remaining=$((remaining - 5))
     done
 
     if [ -n "$(find $CONTROL_PATH -type s -name '*.monitor')" ] ; then

diff --git a/app-emulation/ganeti/files/ganeti.initd-r3 b/app-emulation/ganeti/files/ganeti.initd-r3
index 501563c..a238aa1 100644
--- a/app-emulation/ganeti/files/ganeti.initd-r3
+++ b/app-emulation/ganeti/files/ganeti.initd-r3
@@ -29,13 +29,13 @@ start() {
 	local daemon retval=0 optsvar started_daemons daemon_opts
 
 	for daemon in $(${DAEMON_UTIL} list-start-daemons); do
-		optsvar="${daemon//-/_}"
+		optsvar="$(printf "${daemon}_OPTS" | tr - _ | LC_ALL=C tr '[:lower:]' '[:upper:]')"
 
 		case "${daemon#ganeti-}" in
 			masterd|rapi|luxid) is_master || continue;;
 		esac
 
-		eval daemon_opts=\"\$\{${optsvar^^*}_OPTS\}\"
+		eval daemon_opts=\"\$\{${optsvar}\}\"
 
 		ebegin "Starting ${daemon}"
 		eindent


             reply	other threads:[~2016-07-12  0:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-12  0:53 Robin H. Johnson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-07-13 21:37 [gentoo-commits] repo/gentoo:master commit in: app-emulation/ganeti/files/ Robin H. Johnson
2017-01-07  0:37 Robin H. Johnson
2017-12-12 17:08 Matthias Maier
2019-02-08  1:30 Patrick McLean

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1468284822.cf0146e62e96e3be5914437c766e97418f9ff855.robbat2@gentoo \
    --to=robbat2@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox