2018-12-18 02:08:53 +01:00
|
|
|
#!/usr/bin/env bash
|
2016-11-23 15:49:15 +01:00
|
|
|
release=$(lsb_release -sc)
|
|
|
|
|
2019-05-25 02:07:16 +02:00
|
|
|
if [ "$release" = "xenial" ] && [ -x /sbin/start ] && [ -x /sbin/stop ] && [ -x /sbin/restart ] && [ -x /sbin/status ] && [ -x /sbin/initctl ] && [ ! "$TRAVIS" ]; then
|
2016-11-23 15:49:15 +01:00
|
|
|
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
|