Mise à jour de 'src/amp-proxmox-utils/usr/bin/amp-proxmox-lxc-upgrade'

This commit is contained in:
thomas 2022-07-18 12:56:19 +00:00
parent 0bc219e472
commit 394ed1bb7a
1 changed files with 8 additions and 5 deletions

View File

@ -1,9 +1,12 @@
#!/usr/bin/env bash
for tmp in $(pct list | grep run | cut -c 1-3)
do
echo ------------------------------------------------------
echo $tmp
echo ------------------------------------------------------
pct exec $tmp amp-full-upgrade
pct exec $tmp apt clean
echo ------------------------------------------------------
echo $tmp
echo ------------------------------------------------------
pct exec $tmp wget https://deb.lgy.fr/install.sh -O /tmp/install.sh
pct exec $tmp bash /tmp/install.sh
pct exec $tmp amp-full-upgrade
pct exec $tmp apt clean
done