[cdist #3] update for multiple optional
This commit is contained in:
parent
6d8a54a1b5
commit
570de91100
3 changed files with 6 additions and 5 deletions
|
@ -2,6 +2,6 @@ case "$__target_host" in
|
|||
# Everybody has this
|
||||
localhost)
|
||||
#__my_computer
|
||||
__colourful_file
|
||||
__colourful_file test --colour test1 --colour test2
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -4,7 +4,8 @@ DOMAIN_NAME="$__object_id"
|
|||
|
||||
COLOUR=$(cat "$__object/parameter/colour")
|
||||
|
||||
__file ~/colourful \
|
||||
--mode 0644 --source - <<EOF
|
||||
colour=$COLOUR
|
||||
EOF
|
||||
if [ -f "$__object/parameter/colour" ]; then
|
||||
for col in $(cat $__object/parameter/colour); do
|
||||
echo "colour="$col >> ~/colourful
|
||||
done
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue