Generate debian/*cron* files from LLNG ones (#1733)

This commit is contained in:
Xavier Guimard 2019-05-06 18:37:26 +02:00
parent 23fb9f1c86
commit d2442724f4
6 changed files with 20 additions and 10 deletions

View File

@ -318,9 +318,19 @@ fastcgi-server/man/llng-fastcgi-server.1p: fastcgi-server/sbin/llng-fastcgi-serv
# Perl libraries configuration
json: $(MANAGERJSONDST) fastcgi-server/man/llng-fastcgi-server.1p
json: $(MANAGERJSONDST) fastcgi-server/man/llng-fastcgi-server.1p debian/*cron*
@if which yui-compressor >/dev/null; then $(MAKE) minify; fi
debian/liblemonldap-ng-handler-perl.cron.d: lemonldap-ng-handler/eg/scripts/purgeLocalCache.cron.d
@perl -pe 's/__APACHEUSER__/www-data/g;s@__BINDIR__@/usr/share/lemonldap-ng/bin@g' \
lemonldap-ng-handler/eg/scripts/purgeLocalCache.cron.d \
> debian/liblemonldap-ng-handler-perl.cron.d
debian/liblemonldap-ng-portal-perl.cron.d: lemonldap-ng-portal/site/cron/purgeCentralCache.cron.d
@perl -pe 's/__APACHEUSER__/www-data/g;s@__BINDIR__@/usr/share/lemonldap-ng/bin@g' \
lemonldap-ng-portal/site/cron/purgeCentralCache.cron.d \
> debian/liblemonldap-ng-portal-perl.cron.d
$(MANAGERJSONDST): $(MANAGERJSONSRC)
./scripts/jsongenerator.pl

View File

@ -1,4 +1,4 @@
#
# Regular cron jobs for the Lemonldap::NG portal
# Regular cron jobs for LemonLDAP::NG Handler
#
1 * * * * www-data test -x /usr/share/lemonldap-ng/bin/purgeLocalCache && /usr/share/lemonldap-ng/bin/purgeLocalCache
1 * * * * www-data [ -x /usr/share/lemonldap-ng/bin/purgeLocalCache ] && /usr/share/lemonldap-ng/bin/purgeLocalCache

View File

@ -1,4 +1,4 @@
#
# Regular cron jobs for the Lemonldap::NG portal
# Regular cron jobs for LemonLDAP::NG Portal
#
*/10 * * * * www-data test -x /usr/share/lemonldap-ng/bin/purgeCentralCache && /usr/share/lemonldap-ng/bin/purgeCentralCache
10 1/12 * * * www-data [ -x /usr/share/lemonldap-ng/bin/purgeCentralCache ] && /usr/share/lemonldap-ng/bin/purgeCentralCache

View File

@ -133,7 +133,7 @@
.\" ========================================================================
.\"
.IX Title "llng-fastcgi-server 1"
.TH llng-fastcgi-server 1 "2019-04-16" "perl v5.28.1" "User Contributed Perl Documentation"
.TH llng-fastcgi-server 1 "2019-04-23" "perl v5.28.1" "User Contributed Perl Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l

View File

@ -1,4 +1,4 @@
#
# Regular cron jobs for LemonLDAP::NG
# Regular cron jobs for LemonLDAP::NG Handler
#
1 * * * * __APACHEUSER__ [ -x __BINDIR__/purgeLocalCache ] && __BINDIR__/purgeLocalCache
1 * * * * __APACHEUSER__ [ -x __BINDIR__/purgeLocalCache ] && __BINDIR__/purgeLocalCache

View File

@ -1,4 +1,4 @@
#
# Regular cron jobs for LemonLDAP::NG
# Regular cron jobs for LemonLDAP::NG Portal
#
10 1/12 * * * __APACHEUSER__ [ -x __BINDIR__/purgeCentralCache ] && __BINDIR__/purgeCentralCache
10 1/12 * * * __APACHEUSER__ [ -x __BINDIR__/purgeCentralCache ] && __BINDIR__/purgeCentralCache