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.

install: Set explicit value for PATH.

Alex Vandiver49144247ddd1
diff --git a/scripts/lib/install b/scripts/lib/install
index fa3378d7bb8..2afbe02fd7b 100755
--- a/scripts/lib/install
+++ b/scripts/lib/install
@@ -173,6 +173,10 @@ export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"
export LANGUAGE="en_US.UTF-8"
+# Force a known path; this fixes problems on Debian where `su` from
+# non-root may not adjust `$PATH` to root's.
+export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
+
# Check for a supported OS release.
if [ -f /etc/os-release ]; then
os_info="$(