Explorar o código

Update update-lxcs.sh

tteckster %!s(int64=2) %!d(string=hai) anos
pai
achega
b7e073b1c8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      misc/update-lxcs.sh

+ 1 - 1
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"