diff --git a/Makefile b/Makefile index 93b8da5e5..e736a4be8 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ predepend: git submodule update touch predepend -install: default apache-install +install: default apache-install freedombox-setup-install mkdir -p $(DESTDIR)/etc/init.d $(DESTDIR)/etc/plinth cp plinth.sample.fhs.config $(DESTDIR)/etc/plinth/plinth.config mkdir -p $(DESTDIR)$(PYDIR) $(DESTDIR)$(DATADIR) $(DESTDIR)/usr/bin \ @@ -37,6 +37,9 @@ install: default apache-install cp -r data/* $(DESTDIR)/var/lib/plinth rm -f $(DESTDIR)/var/lib/plinth/users/sqlite3.distrib +freedombox-setup-install: + install -m755 -D setup.d/86_plinth $(DESTDIR)/usr/lib/freedombox/setup.d/86_plinth + uninstall: rm -rf $(DESTDIR)/usr/lib/python2.7/plinth $(DESTDIR)/usr/share/plinth/ \ $(DESTDIR)/etc/plinth $(DESTDIR)/var/lib/plinth $(DESTDIR)/usr/share/doc/plinth/ \ diff --git a/setup.d/86_plinth b/setup.d/86_plinth new file mode 100755 index 000000000..17bf475c0 --- /dev/null +++ b/setup.d/86_plinth @@ -0,0 +1,14 @@ +#!/bin/sh +# +# Enable Plinth. + +echo "Configuring Plinth..." + +make-ssl-cert generate-default-snakeoil +a2enmod ssl +a2enmod rewrite +a2enmod proxy +a2enmod proxy_http +a2ensite plinth.conf + +echo "Done configuring Plinth.."