mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-30 02:14:34 +01:00
Update update-lxcs.sh
This commit is contained in:
parent
a46082ffaa
commit
a7f797ede2
@ -39,7 +39,7 @@ function update_container() {
|
|||||||
pct config $container > temp
|
pct config $container > temp
|
||||||
os=`awk '/^ostype/' temp | cut -d' ' -f2`
|
os=`awk '/^ostype/' temp | cut -d' ' -f2`
|
||||||
if [ "$os" == "alpine" ]; then
|
if [ "$os" == "alpine" ]; then
|
||||||
pct exec $container -- ash -c "apk update && apk upgrade -y"
|
pct exec $container -- ash -c "apk update && apk upgrade"
|
||||||
elif [ "$os" == "ubuntu" ] || [ "$os" == "debian" ] || [ "$os" == "devuan" ]; then
|
elif [ "$os" == "ubuntu" ] || [ "$os" == "debian" ] || [ "$os" == "devuan" ]; then
|
||||||
pct exec $container -- bash -c "apt-get update && apt-get upgrade -y && apt-get clean && apt-get --purge autoremove -y"
|
pct exec $container -- bash -c "apt-get update && apt-get upgrade -y && apt-get clean && apt-get --purge autoremove -y"
|
||||||
elif [ "$os" == "fedora" ]; then
|
elif [ "$os" == "fedora" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user