diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2016-07-11 17:53:25 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2016-07-11 17:53:42 -0700 |
commit | cf0146e62e96e3be5914437c766e97418f9ff855 (patch) | |
tree | 7c0db5490ac8fcc207b719a5817731a193e25875 /app-emulation | |
parent | app-emulation/ganeti: support USE=restricted-commands, tweak haskell flags an... (diff) | |
download | gentoo-cf0146e62e96e3be5914437c766e97418f9ff855.tar.gz gentoo-cf0146e62e96e3be5914437c766e97418f9ff855.tar.bz2 gentoo-cf0146e62e96e3be5914437c766e97418f9ff855.zip |
app-emulation/ganeti: fix bashisms.
Package-Manager: portage-2.2.28
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/ganeti/files/ganeti-kvm-poweroff.initd | 4 | ||||
-rw-r--r-- | 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 487e9e59a3f5..af25b2499b86 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 501563ca8795..a238aa1ecb84 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 |