Skip to content

Commit

Permalink
fix deprecated service logic
Browse files Browse the repository at this point in the history
(cherry picked from commit efc5969)
  • Loading branch information
yocalebo authored and bugclerk committed Sep 30, 2024
1 parent d388cd9 commit 0f34cc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions truenas_install/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ def precheck(old_root):

try:
with open(f"/proc/{pid}/cgroup") as f:
cgroups = f.read()
cgroups = f.read().strip()
except FileNotFoundError:
cgroups = ""

# https://forums.truenas.com/t/disable-webdav-service-from-cli-or-by-modifying-config-db/2795/4
if "docker" in cgroups or "/payload/" in cgroups:
if cgroups and "kubepods" in cgroups or "docker" in cgroups or "/payload/" in cgroups:
continue

running_services.append(title)
Expand Down

0 comments on commit 0f34cc0

Please sign in to comment.