forked from ungleich-public/cdist
/deinstalled/uninstalled/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
b9ff43c657
commit
614ff21f4a
4 changed files with 5 additions and 6 deletions
|
@ -16,7 +16,7 @@ case "$__target_host" in
|
|||
|
||||
# Alias in /etc/hosts for localhost
|
||||
cdist-archlinux)
|
||||
__package_pacman django --state deinstalled
|
||||
__package_pacman django --state uninstalled
|
||||
__package_pacman wireshark-cli --state installed
|
||||
__package_pacman zsh --state installed
|
||||
;;
|
||||
|
@ -27,6 +27,6 @@ case "$__target_host" in
|
|||
# Real machines
|
||||
ikq*)
|
||||
__package_apt zsh --state installed
|
||||
__package_apt apache2 --state deinstalled
|
||||
__package_apt apache2 --state uninstalled
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -38,7 +38,7 @@ case "$state" in
|
|||
echo apt-get --quiet --yes install \"$name\"
|
||||
fi
|
||||
;;
|
||||
deinstalled)
|
||||
uninstalled)
|
||||
# Remove only if existent
|
||||
if [ -n "$is_installed" ]; then
|
||||
echo apt-get --quiet --yes remove \"$name\"
|
||||
|
|
|
@ -34,9 +34,8 @@ case "$state" in
|
|||
# FIXME: only install if not already installed
|
||||
echo "emerge -q \"$name\""
|
||||
;;
|
||||
deinstalled)
|
||||
uninstalled)
|
||||
# FIXME: only uninstall if currently installed
|
||||
# FIXME: rename deinstalled to uninstalled
|
||||
echo "emerge -q -C \"$name\""
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -44,7 +44,7 @@ case "$state" in
|
|||
echo pacman "$pacopts" -S \"$name\"
|
||||
fi
|
||||
;;
|
||||
deinstalled)
|
||||
uninstalled)
|
||||
if [ "$pkg_version" ]; then
|
||||
echo pacman "$pacopts" -R \"$name\"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue