mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Fix apt upgrade
This commit is contained in:
parent
3598f8d797
commit
3bdb0e176d
1 changed files with 3 additions and 1 deletions
|
@ -70,11 +70,13 @@ echo "\e[1m> Update\e[0m"
|
||||||
update_apt=0
|
update_apt=0
|
||||||
sudo lxc-attach -n $LXC_NAME -- apt-get update
|
sudo lxc-attach -n $LXC_NAME -- apt-get update
|
||||||
sudo lxc-attach -n $LXC_NAME -- apt-get dist-upgrade --dry-run | grep -q "^Inst " # Vérifie si il y aura des mises à jour.
|
sudo lxc-attach -n $LXC_NAME -- apt-get dist-upgrade --dry-run | grep -q "^Inst " # Vérifie si il y aura des mises à jour.
|
||||||
|
|
||||||
if [ "$?" -eq 0 ]; then
|
if [ "$?" -eq 0 ]; then
|
||||||
update_apt=1
|
update_apt=1
|
||||||
fi
|
fi
|
||||||
echo "\e[1m> Upgrade\e[0m"
|
echo "\e[1m> Upgrade\e[0m"
|
||||||
sudo lxc-attach -n $LXC_NAME -- apt-get dist-upgrade -y
|
sudo lxc-attach -n $LXC_NAME -- apt-get dist-upgrade --option Dpkg::Options::=--force-confold -yy
|
||||||
|
|
||||||
echo "\e[1m> Clean\e[0m"
|
echo "\e[1m> Clean\e[0m"
|
||||||
sudo lxc-attach -n $LXC_NAME -- apt-get autoremove -y
|
sudo lxc-attach -n $LXC_NAME -- apt-get autoremove -y
|
||||||
sudo lxc-attach -n $LXC_NAME -- apt-get autoclean
|
sudo lxc-attach -n $LXC_NAME -- apt-get autoclean
|
||||||
|
|
Loading…
Add table
Reference in a new issue