amue-authentic2: restore install of nginx configuration files
This commit is contained in:
parent
e95c73a2b9
commit
cbfd7ac6ab
3
Makefile
3
Makefile
|
@ -13,3 +13,6 @@ install:
|
||||||
# custom template and static files
|
# custom template and static files
|
||||||
install -d $(DESTDIR)/var/lib/authentic2/
|
install -d $(DESTDIR)/var/lib/authentic2/
|
||||||
cp -R templates extra-static $(DESTDIR)/var/lib/authentic2/
|
cp -R templates extra-static $(DESTDIR)/var/lib/authentic2/
|
||||||
|
install -d $(DESTDIR)/etc/authentic2/
|
||||||
|
cp config/nginx/idp.amue.fr $(DESTDIR)/etc/authentic2/idp.amue.fr.nginx
|
||||||
|
cp config/authentic2/config.py $(DESTDIR)/etc/authentic2/
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
../sites-available/idp.amue.fr
|
|
|
@ -0,0 +1 @@
|
||||||
|
/etc/authentic2/idp.amue.fr.nginx
|
|
@ -1 +1,2 @@
|
||||||
/var/lib/authentic2/*
|
/var/lib/authentic2/*
|
||||||
|
/etc/authentic2/*
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
configure)
|
||||||
|
if ! readlink -q /etc/nginx/sites-enabled/idp.amue.fr; then
|
||||||
|
echo Using amue-authentic2 configuration for nginx \(symlink to /etc/authentic2/idp.amue.fr.nginx\)...
|
||||||
|
ln -b -s /etc/authentic2/idp.amue.fr.nginx /etc/nginx/sites-available/idp.amue.fr
|
||||||
|
ln -b -s /etc/nginx/sites-available/idp.amue.fr /etc/nginx/sites-enabled/
|
||||||
|
service nginx restart
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
#DEBHELPER#
|
Reference in New Issue