Skip to content

Commit 6c4406a

Browse files
authored
Restrict OS support check to only Ubuntu
1 parent 83aecf3 commit 6c4406a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ct/inventree.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,14 @@ function update_script() {
2929
exit
3030
fi
3131

32-
# Check for supported OS
33-
if ! grep -qE "^ID=(ubuntu|debian)$" /etc/os-release; then
34-
msg_error "Unsupported OS. InvenTree requires Ubuntu (20.04/22.04/24.04) or Debian (10/11/12)."
32+
if ! grep -qE "^ID=(ubuntu)$" /etc/os-release; then
33+
msg_error "Unsupported OS. InvenTree requires Ubuntu (20.04/22.04/24.04)."
3534
exit
3635
fi
3736

3837
msg_info "Updating $APP"
39-
$STD apt-get update
40-
$STD apt-get install --only-upgrade inventree -y
38+
$STD apt update
39+
$STD apt install --only-upgrade inventree -y
4140
msg_ok "Updated $APP"
4241
exit
4342
}

0 commit comments

Comments
 (0)