mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
apt-get update before upgrade
This commit is contained in:
parent
b62363108f
commit
5cd3eb39ea
1 changed files with 1 additions and 0 deletions
|
@ -83,6 +83,7 @@ sudo lxc-attach -n $LXC_NAME -- cp /bin/true /usr/lib/apt/apt.systemd.daily
|
|||
|
||||
echo -e "\e[1m> Update\e[0m"
|
||||
update_apt=0
|
||||
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.
|
||||
|
||||
if [ "$?" -eq 0 ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue