|
|
|
@ -24,6 +24,10 @@ |
|
|
|
|
|
|
|
|
|
type="$__object/parameter/type" |
|
|
|
|
|
|
|
|
|
apt_clean="$__object/parameter/apt-clean" |
|
|
|
|
|
|
|
|
|
apt_dist_upgrade="$__object/parameter/apt-dist-upgrade" |
|
|
|
|
|
|
|
|
|
if [ -f "$type" ]; then |
|
|
|
|
type="$(cat "$type")" |
|
|
|
|
else |
|
|
|
@ -48,8 +52,15 @@ case "$type" in |
|
|
|
|
echo "yum --quiet clean all" |
|
|
|
|
;; |
|
|
|
|
apt) |
|
|
|
|
echo $aptget dist-upgrade |
|
|
|
|
echo "apt-get --quiet autoclean" |
|
|
|
|
if [ -f "$apt_dist_upgrade" ] |
|
|
|
|
then echo $aptget dist-upgrade |
|
|
|
|
else echo $aptget upgrade |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ -f "$apt_clean" ] |
|
|
|
|
then echo "apt-get --quiet clean" |
|
|
|
|
else echo "apt-get --quiet autoclean" |
|
|
|
|
fi |
|
|
|
|
;; |
|
|
|
|
pacman) |
|
|
|
|
echo "pacman --noprogressbar --noconfirm --sync --sysupgrade" |
|
|
|
|