WARNING apt does not have a stable CLI interface. Use with caution in scripts.
This commit is contained in:
@@ -34,10 +34,10 @@ run_scp() {
|
|||||||
update_with_apt() {
|
update_with_apt() {
|
||||||
echo -e " - Mise à jour avec apt sur $1 \n"
|
echo -e " - Mise à jour avec apt sur $1 \n"
|
||||||
run_ssh "$1" '
|
run_ssh "$1" '
|
||||||
sudo apt -y -q clean &&
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -q clean &&
|
||||||
sudo apt -y -q update &&
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -q update &&
|
||||||
sudo apt -y -q full-upgrade &&
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -q full-upgrade &&
|
||||||
sudo apt -y -q autoremove
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -q autoremove
|
||||||
'
|
'
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user