mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
Configure Apache by default.
This commit is contained in:
parent
f11a97e060
commit
5de7ecc99b
15
Makefile
15
Makefile
@ -14,7 +14,7 @@ DATADIR=/usr/share/plinth
|
|||||||
PYDIR=$(DATADIR)/python/plinth
|
PYDIR=$(DATADIR)/python/plinth
|
||||||
|
|
||||||
## Catch-all tagets
|
## Catch-all tagets
|
||||||
default: config dirs template css docs dbs
|
default: config dirs template css docs dbs apache-config
|
||||||
all: default
|
all: default
|
||||||
|
|
||||||
predepend:
|
predepend:
|
||||||
@ -93,3 +93,16 @@ current-checkout.tar.gz: $(ALL_BUT_GZ)
|
|||||||
|
|
||||||
current-repository.tar.gz: $(ALL_BUT_GZ)
|
current-repository.tar.gz: $(ALL_BUT_GZ)
|
||||||
tar cz $(EXCLUDE) * .git > current-repository.tar.gz
|
tar cz $(EXCLUDE) * .git > current-repository.tar.gz
|
||||||
|
|
||||||
|
apache-config: apache-ssl
|
||||||
|
cp support/apache/sites-available/plinth.conf /etc/apache/sites-available/plinth.conf
|
||||||
|
cp support/apache/plinth-ports.conf /etc/apache/plinth-ports.conf
|
||||||
|
# include plinth's ports if necessary.
|
||||||
|
ifeq ($(shell grep 'plinth-ports.conf' /etc/apache2/ports.conf), "")
|
||||||
|
echo "Include plinth-ports.conf" >> /etc/apache2/ports.conf
|
||||||
|
endif
|
||||||
|
a2ensite plinth
|
||||||
|
|
||||||
|
apache-ssl:
|
||||||
|
make-ssl-cert generate-default-snakeoil
|
||||||
|
a2enmod ssl
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user