Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

setup-apt-repos: Don’t install lsb_release.

Anders Kaseorgf6a701090ca5
diff --git a/puppet/zulip_ops/files/teleport_node.yaml b/puppet/zulip_ops/files/teleport_node.yaml
index 164e587d0ea..87955f0df32 100644
--- a/puppet/zulip_ops/files/teleport_node.yaml
+++ b/puppet/zulip_ops/files/teleport_node.yaml
@@ -16,7 +16,8 @@ ssh_service:
command: ["/usr/bin/uptrack-uname", "-r"]
period: 1h0m0s
- name: distro
- command: ["/usr/bin/lsb_release", "-ds"]
+ command:
+ ["/bin/sh", "-c", '. /etc/os-release && printf "%s\n" "$PRETTY_NAME"']
period: 1h0m0s
- name: classes
command:
diff --git a/scripts/lib/setup-apt-repo b/scripts/lib/setup-apt-repo
index b35d8e9e0e9..7c4a4c2fba1 100755
--- a/scripts/lib/setup-apt-repo
+++ b/scripts/lib/setup-apt-repo
@@ -83,7 +83,7 @@ fi
# Hash to check if the configuration is changed by the script later.
hashes=$(sha256sum "$SOURCES_FILE" "$PREF_FILE" 2>/dev/null || true)
-pre_setup_deps=(lsb-release apt-transport-https ca-certificates gnupg curl)
+pre_setup_deps=(apt-transport-https ca-certificates gnupg curl)
if ! apt-get -dy install "${pre_setup_deps[@]}"; then
apt-get update
fi
diff --git a/tools/setup/dev-vagrant-docker/Dockerfile b/tools/setup/dev-vagrant-docker/Dockerfile
index 98fa7148888..2560bd17cc5 100644
--- a/tools/setup/dev-vagrant-docker/Dockerfile
+++ b/tools/setup/dev-vagrant-docker/Dockerfile
@@ -11,7 +11,6 @@ RUN echo locales locales/default_environment_locale select C.UTF-8 | debconf-set
ca-certificates \
curl \
locales \
- lsb-release \
openssh-server \
python3 \
sudo \