mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
Add freedombox-setup script for plinth.
This allow us to handle all plinth setup in one package.
This commit is contained in:
parent
025c2aebc1
commit
6e1d144706
5
Makefile
5
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/ \
|
||||
|
||||
14
setup.d/86_plinth
Executable file
14
setup.d/86_plinth
Executable file
@ -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.."
|
||||
Loading…
x
Reference in New Issue
Block a user