Skip to content
Snippets Groups Projects
Commit 8645ff83 authored by Iustin Pop's avatar Iustin Pop
Browse files

daemon-utils: remove usage of here-docs


In some versions of bash, here-docs and here-strings use temporary
files, which means daemon-util needs a writable temporary filesystem.
Since echo is a bash builtin anyway, it's simple to switch to it and
remove this dependency.

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 7a8da378
No related merge requests found
......@@ -59,7 +59,7 @@ start() {
local name="$1"; shift
# Convert daemon name to uppercase after removing "ganeti-" prefix
local ucname=$(tr a-z A-Z <<< ${name#ganeti-})
local ucname=$(echo ${name#ganeti-} | tr a-z A-Z)
# Read $<daemon>_ARGS and $EXTRA_<daemon>_ARGS
eval local args="\"\$${ucname}_ARGS \$EXTRA_${ucname}_ARGS\""
......
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