mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 05:14:10 -07:00
Keep conf files during auto-update
This commit is contained in:
parent
14aad370ac
commit
9d182f292f
1 changed files with 2 additions and 2 deletions
|
@ -45,11 +45,11 @@ if [ -n "$(command -v yum)" ]; then
|
||||||
check_result $? "$package update failed" $E_UPDATE
|
check_result $? "$package update failed" $E_UPDATE
|
||||||
else
|
else
|
||||||
# Update repo
|
# Update repo
|
||||||
apt-get update -o Dir::Etc::sourcelist="sources.list.d/vesta.list" \
|
apt update -o Dir::Etc::sourcelist="sources.list.d/vesta.list" \
|
||||||
-o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" -qq
|
-o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" -qq
|
||||||
|
|
||||||
# Update vesta package
|
# Update vesta package
|
||||||
apt-get install $package -qq > /dev/null 2>&1
|
apt -y -qq -o Dpkg::Options::="--force-confold" install $package > /dev/null 2>&1
|
||||||
check_result $? "$package update failed" $E_UPDATE
|
check_result $? "$package update failed" $E_UPDATE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue