WARNING apt does not have a stable CLI interface. Use with caution in scripts.

This commit is contained in:
2025-05-29 07:27:34 +02:00
parent ac55b0ab90
commit 59430128f1

View File

@@ -34,10 +34,10 @@ run_scp() {
update_with_apt() {
echo -e " - Mise à jour avec apt sur $1 \n"
run_ssh "$1" '
sudo apt -y -q clean &&
sudo apt -y -q update &&
sudo apt -y -q full-upgrade &&
sudo apt -y -q autoremove
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -q clean &&
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -q update &&
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -q full-upgrade &&
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -q autoremove
'
echo -e "\n"
}