Commit 84e8ac25 authored by Joshua Tauberer's avatar Joshua Tauberer

block users who aren't running the distro that the docs specifically require

parent 2ebd9706
...@@ -3,6 +3,15 @@ ...@@ -3,6 +3,15 @@
# Check system setup. # Check system setup.
if [ "`lsb_release -d | sed 's/.*:\s*//'`" != "Ubuntu 13.04" ]; then
echo "Mail-in-a-Box only supports being installed on Ubuntu 13.04, sorry. You are running:"
echo
lsb_release -d | sed 's/.*:\s*//'
echo
echo "We can't write scripts that run on every possible setup, sorry."
exit
fi
# Check that SSH login with password is disabled. Stop if it's enabled. # Check that SSH login with password is disabled. Stop if it's enabled.
if grep -q "^PasswordAuthentication yes" /etc/ssh/sshd_config \ if grep -q "^PasswordAuthentication yes" /etc/ssh/sshd_config \
|| ! grep -q "^PasswordAuthentication no" /etc/ssh/sshd_config ; then || ! grep -q "^PasswordAuthentication no" /etc/ssh/sshd_config ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment