mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
/bin/sh and /usr/bin/env are the only two binaries that NixOS provides at a fixed path (outside a buildFHSUserEnv sandbox). This discussion was split from #11004. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
12 lines
591 B
Bash
Executable File
12 lines
591 B
Bash
Executable File
#!/usr/bin/env bash
|
|
release=$(lsb_release -sc)
|
|
|
|
if [ "$release" = "xenial" ] && [ -x /sbin/start ] && [ -x /sbin/stop ] && [ -x /sbin/restart ] && [ -x /sbin/status ] && [ -x /sbin/initctl ]; then
|
|
echo "You appear to be running Ubuntu Xenial, but with the upstart package installed."
|
|
echo "In Ubuntu Xenial, upstart has been replaced by systemd, and having upstart"
|
|
echo "installed will break the init scripts for Zulip dependencies like nginx."
|
|
echo "Please uninstall the \"upstart\" package (apt-get remove upstart) and rerun"
|
|
echo "this install script."
|
|
exit 1
|
|
fi
|