FreedomBox/setup.d/86_plinth
Nick Daly a47ced4563 Add freedombox-setup script for plinth.
This allow us to handle all the Plinth setup in one package.  I've
added one change from Pere's original commit: we disable Apache's
default site.  If the default site is enabled, Plinth doesn't load
correctly (we get 404 errors).
2013-10-27 16:35:12 -05:00

16 lines
234 B
Bash
Executable File

#!/bin/sh
#
# Enable Plinth.
echo "Configuring Plinth..."
make-ssl-cert generate-default-snakeoil
a2enmod ssl
a2enmod rewrite
a2enmod proxy
a2enmod proxy_http
a2dissite default
a2ensite plinth.conf
echo "Done configuring Plinth.."