LEMONLDAP::NG : Liberty-Alliance portal is now managed like classic portal
This commit is contained in:
parent
f71c37d97b
commit
fe5005d46f
|
@ -3,4 +3,8 @@ debian/tmp/usr/share/perl5/auto/Lemonldap/NG/Portal
|
|||
debian/tmp/usr/share/man/man3/Lemonldap::NG::Portal*
|
||||
debian/portal-apache*.conf /etc/lemonldap-ng
|
||||
debian/tmp/var/lib/lemonldap-ng/portal/scripts/purgeCentralCache /usr/share/lemonldap-ng/bin
|
||||
debian/tmp/var/lib/lemonldap-ng/liberty-alliance-sp-portal
|
||||
debian/tmp/var/lib/lemonldap-ng/liberty-alliance-sp-portal/error403.pl
|
||||
debian/tmp/var/lib/lemonldap-ng/liberty-alliance-sp-portal/idps.xml
|
||||
debian/tmp/var/lib/lemonldap-ng/liberty-alliance-sp-portal/liberty
|
||||
debian/tmp/var/lib/lemonldap-ng/liberty-alliance-sp-portal/ressources
|
||||
debian/tmp/var/lib/lemonldap-ng/liberty-alliance-sp-portal/tpl
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
. /usr/share/debconf/confmodule
|
||||
|
||||
LAEXAMPLEPORTALFILE=/usr/share/doc/liblemonldap-ng-portal-perl/examples/liberty-alliance-sp-portal/index.pl
|
||||
LAPORTALFILE=/var/lib/lemonldap-ng/liberty-alliance-sp-portal/index.pl
|
||||
EXAMPLEPORTALFILE=/usr/share/doc/liblemonldap-ng-portal-perl/examples/index.pl
|
||||
PORTALFILE=/var/lib/lemonldap-ng/portal/index.pl
|
||||
CLEANERFILE=/usr/share/lemonldap-ng/bin/purgeCentralCache
|
||||
|
@ -10,6 +12,10 @@ SESSIONSDIR=/var/lib/lemonldap-ng/sessions
|
|||
|
||||
if [ "$1" == "configure" ]
|
||||
then
|
||||
[ -e $LAPORTALFILE ] || \
|
||||
perl -000 -pe 's/(configStorage\s*=>\s*){[^}]+}/$1\$Lemonldap::NG::Conf::configStorage/;
|
||||
s#^use#\nrequire "/usr/share/lemonldap-ng/configStorage.pm";\nuse#m;' \
|
||||
$LAEXAMPLEPORTALFILE >$LAPORTALFILE
|
||||
[ -e $PORTALFILE ] || \
|
||||
perl -000 -pe 's/(configStorage\s*=>\s*){[^}]+}/$1\$Lemonldap::NG::Conf::configStorage/;
|
||||
s#^use#\nrequire "/usr/share/lemonldap-ng/configStorage.pm";\nuse#m;' \
|
||||
|
@ -20,6 +26,7 @@ then
|
|||
$CLEANERFILE
|
||||
chmod +x $PORTALFILE
|
||||
chmod +x $CLEANERFILE
|
||||
chmod +x $LAPORTALFILE
|
||||
chmod 770 $SESSIONSDIR
|
||||
chmod 770 $SESSIONSDIR/lock
|
||||
chown -R www-data.www-data $SESSIONSDIR
|
||||
|
|
Loading…
Reference in New Issue
Block a user