LEMONLDAP::NG : the purgeCentralCache was not cleanly installed in Debian process (Closes: #461572 / bugs.debian.org)

environments/ppa-mbqj77/deployments/1
Xavier Guimard 18 years ago
parent b8b463c493
commit cbc3c62746
  1. 1
      build/lemonldap-ng/debian/liblemonldap-ng-portal-perl.install
  2. 5
      build/lemonldap-ng/debian/liblemonldap-ng-portal-perl.postinst

@ -2,3 +2,4 @@ debian/tmp/usr/share/perl5/Lemonldap/NG/Portal*
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

@ -5,7 +5,6 @@
EXAMPLEPORTALFILE=/usr/share/doc/liblemonldap-ng-portal-perl/examples/index.pl
PORTALFILE=/var/lib/lemonldap-ng/portal/index.pl
EXAMPLECLEANERFILE=/usr/share/doc/liblemonldap-ng-portal-perl/examples/scripts/purgeCentralCache
CLEANERFILE=/usr/share/lemonldap-ng/bin/purgeCentralCache
SESSIONSDIR=/var/lib/lemonldap-ng/sessions
@ -16,9 +15,9 @@ then
s#^use#\nrequire "/usr/share/lemonldap-ng/configStorage.pm";\nuse#m;' \
$EXAMPLEPORTALFILE >$PORTALFILE
[ -e $CLEANERFILE ] || \
perl -000 -pe 's/(configStorage\s*=>\s*){[^}]+}/$1\$Lemonldap::NG::Conf::configStorage/;
perl -i -000 -pe 's/(configStorage\s*=>\s*){[^}]+}/$1\$Lemonldap::NG::Conf::configStorage/;
s#^use#\nrequire "/usr/share/lemonldap-ng/configStorage.pm";\nuse#m;' \
$EXAMPLECLEANERFILE >$CLEANERFILE
$CLEANERFILE
chmod +x $PORTALFILE
chmod +x $CLEANERFILE
chmod 770 $SESSIONSDIR

Loading…
Cancel
Save