Skip to content

Commit a06de09

Browse files
committed
fix recognizing the NixOS distribution
Ubuntu is not the only distribution that has a `/etc/lsb-release`, NixOS has it as well since NixOS/nixpkgs#162168
1 parent b13b985 commit a06de09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rc/trafficserver.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ elif [ -e /etc/gentoo-release ]; then
5656
DISTRIB_ID="gentoo"
5757
elif [ -e /etc/redhat-release ]; then
5858
DISTRIB_ID="redhat" # also exists on Fedora
59-
elif [ -e /etc/lsb-release ]; then
60-
DISTRIB_ID="ubuntu"
6159
elif [ -e /etc/debian_version ]; then
6260
DISTRIB_ID="debian" # also exists on Ubuntu
6361
elif [ -e /etc/slackware-version ]; then
@@ -68,6 +66,8 @@ elif [ "$UNAME_S" = "FreeBSD" ]; then
6866
DISTRIB_ID="FreeBSD"
6967
elif nixos-version > /dev/null; then
7068
DISTRIB_ID="nixos"
69+
elif [ -e /etc/lsb-release ]; then
70+
DISTRIB_ID="ubuntu"
7171
fi
7272

7373
# We might want to move over to use /etc/system-release for more distros?

0 commit comments

Comments
 (0)