forked from ungleich-public/cdist
Korrektur der intention, vim hat mich verschaukelt ...
This commit is contained in:
parent
6a68c14a76
commit
808ea30634
1 changed files with 8 additions and 8 deletions
|
@ -65,27 +65,27 @@ fi
|
||||||
case "$state" in
|
case "$state" in
|
||||||
present)
|
present)
|
||||||
if [ -z "$desc" ] || [ -z "$uri" ]; then
|
if [ -z "$desc" ] || [ -z "$uri" ]; then
|
||||||
echo "parameter repo_desc and repo_uri for $state needed" >&2
|
echo "parameter repo_desc and repo_uri for $state needed" >&2
|
||||||
exit 4
|
exit 4
|
||||||
fi
|
fi
|
||||||
if [ -z "$repo_id" ]; then
|
if [ -z "$repo_id" ]; then
|
||||||
echo zypper $zypper_def_opts addrepo "'$uri'" "'$desc'"
|
echo zypper $zypper_def_opts addrepo "'$uri'" "'$desc'"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
absent)
|
absent)
|
||||||
if [ ! -z "$act_id" ]; then
|
if [ ! -z "$act_id" ]; then
|
||||||
echo zypper $zypper_def_opts removerepo $act_id
|
echo zypper $zypper_def_opts removerepo $act_id
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
enabled)
|
enabled)
|
||||||
if [ ! -z "$act_id" ]; then
|
if [ ! -z "$act_id" ]; then
|
||||||
echo zypper $zypper_def_opts modifyrepo -e $act_id
|
echo zypper $zypper_def_opts modifyrepo -e $act_id
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
disabled)
|
disabled)
|
||||||
if [ ! -z "$act_id" ]; then
|
if [ ! -z "$act_id" ]; then
|
||||||
echo zypper $zypper_def_opts modifyrepo -d $act_id
|
echo zypper $zypper_def_opts modifyrepo -d $act_id
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown state: $state" >&2
|
echo "Unknown state: $state" >&2
|
||||||
|
|
Loading…
Reference in a new issue