Merge branch 'bugfix__zypper' of https://github.com/dheule/cdist

This commit is contained in:
Nico Schottelius 2014-05-05 22:32:54 +02:00
commit ae53b8e381
3 changed files with 4 additions and 3 deletions

View file

@ -25,7 +25,7 @@
#exec >&2 #exec >&2
#set -x #set -x
zypper_def_opts=" -q " zypper_def_opts=" -q --non-interactive --gpg-auto-import-keys "
if [ -f "$__object/parameter/repo_desc" ]; then if [ -f "$__object/parameter/repo_desc" ]; then
desc="$(cat "$__object/parameter/repo_desc")" desc="$(cat "$__object/parameter/repo_desc")"

View file

@ -25,7 +25,7 @@
#exec >&2 #exec >&2
#set -x #set -x
zypper_def_opts=" -q " zypper_def_opts=" -q --non-interactive --gpg-auto-import-keys "
if [ -f "$__object/parameter/service_desc" ]; then if [ -f "$__object/parameter/service_desc" ]; then
desc="$(cat "$__object/parameter/service_desc")" desc="$(cat "$__object/parameter/service_desc")"
@ -73,10 +73,12 @@ case "$state_should" in
present) present)
echo zypper $zypper_def_opts addservice -t "$stype" "$uri" \"$desc\" echo zypper $zypper_def_opts addservice -t "$stype" "$uri" \"$desc\"
echo zypper $zypper_def_opts refs echo zypper $zypper_def_opts refs
echo zypper $zypper_def_opts ref
;; ;;
absent) absent)
echo zypper $zypper_def_opts removeservice "$service_id" echo zypper $zypper_def_opts removeservice "$service_id"
echo zypper $zypper_def_opts refs echo zypper $zypper_def_opts refs
echo zypper $zypper_def_opts ref
;; ;;
*) *)
echo "Unknown state: $state_should" >&2 echo "Unknown state: $state_should" >&2

View file

@ -25,7 +25,6 @@
#exec >&2 #exec >&2
#set -x #set -x
zypper_def_opts=" -q "
if [ -f "$__object/parameter/uri" ]; then if [ -f "$__object/parameter/uri" ]; then
uri="$(cat "$__object/parameter/uri")" uri="$(cat "$__object/parameter/uri")"