From b7e073b1c8a39b9f51e4c215ea33095cd20355e6 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 4 Feb 2023 12:56:22 -0500 Subject: [PATCH] Update update-lxcs.sh --- misc/update-lxcs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/update-lxcs.sh b/misc/update-lxcs.sh index 0c19f0ca..e4542e09 100644 --- a/misc/update-lxcs.sh +++ b/misc/update-lxcs.sh @@ -40,7 +40,7 @@ function update_container() { os=`awk '/^ostype/' temp | cut -d' ' -f2` if [ "$os" == "alpine" ]; then pct exec $container -- ash -c "apk update && apk upgrade" - elif [ "$os" == "ubuntu" ] || [ "$PCT_OSTYPE" == "debian" ] || [ "$os" == "devuan" ]; then + elif [ "$os" == "ubuntu" ] || [ "$os" == "debian" ] || [ "$os" == "devuan" ]; then pct exec $container -- bash -c "apt-get update && apt-get -y upgrade" elif [ "$os" == "fedora" ] || [ "$os" == "rocky" ] || [ "$os" == "centos" ] || [ "$os" == "alma" ]; then pct exec $container -- bash -c "dnf -y update && dnf -y upgrade"