Skip to content

Commit ebce34b

Browse files
author
Kristan Kenney
committed
Remove legacy CentOS code in v-update-sys-hestia
1 parent 1077ee0 commit ebce34b

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

bin/v-update-sys-hestia

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,17 @@ source $HESTIA/conf/hestia.conf
2828
# Checking arg number
2929
check_args '1' "$#" 'PACKAGE'
3030

31-
3231
#----------------------------------------------------------#
3332
# Action #
3433
#----------------------------------------------------------#
3534

36-
if [ -d "/etc/sysconfig" ]; then
37-
# Clean yum chache
38-
yum -q clean all
39-
40-
# Define yum cmd
41-
yum="yum -q -y --noplugins --disablerepo=* --enablerepo=hestia"
42-
43-
# Update hestia package
44-
$yum update $package > /dev/null 2>&1
45-
check_result $? "$package update failed" $E_UPDATE
46-
else
47-
# Update repo
48-
apt-get update -o Dir::Etc::sourcelist="sources.list.d/hestia.list" \
49-
-o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" -qq
50-
51-
# Update hestia package
52-
apt-get install $package -qq > /dev/null 2>&1
53-
check_result $? "$package update failed" $E_UPDATE
54-
fi
35+
# Update repo
36+
apt-get update -o Dir::Etc::sourcelist="sources.list.d/hestia.list" \
37+
-o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" -qq
5538

39+
# Update hestia package
40+
apt-get install $package -qq > /dev/null 2>&1
41+
check_result $? "$package update failed" $E_UPDATE
5642

5743
#----------------------------------------------------------#
5844
# Hestia #

0 commit comments

Comments
 (0)