Skip to content

Commit

Permalink
Fix cron
Browse files Browse the repository at this point in the history
  • Loading branch information
guimard committed Aug 18, 2024
1 parent 68aef30 commit 0024945
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
14 changes: 6 additions & 8 deletions base-no-s6/install/etc/services.d/cron/run
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@ touch /etc/crontab /etc/cron.*/*

if test "$HANDLER_CRON" != "yes"; then
rm -f /etc/cron.d/liblemonldap-ng-handler-perl
fi

if test "$HANDLER_CRON" != "no" -a "$HANDLER_CRON" != ""; then
echo "$HANDLER_CRON www-data [ -x /usr/share/lemonldap-ng/bin/purgeLocalCache ] && /usr/share/lemonldap-ng/bin/purgeLocalCache" >/etc/cron.d/liblemonldap-ng-handler-perl
if test "$HANDLER_CRON" != "no" -a "$HANDLER_CRON" != ""; then
echo "$HANDLER_CRON www-data [ -x /usr/share/lemonldap-ng/bin/purgeLocalCache ] && /usr/share/lemonldap-ng/bin/purgeLocalCache" >/etc/cron.d/liblemonldap-ng-handler-perl
fi
fi

if test "$PORTAL_CRON" != "yes"; then
rm -f /etc/cron.d/liblemonldap-ng-portal-perl
fi

if test "$PORTAL_CRON" != "no" -a "$PORTAL_CRON" != ""; then
echo "$PORTAL_CRON www-data [ -x /usr/share/lemonldap-ng/bin/purgeCentralCache ] && /usr/share/lemonldap-ng/bin/purgeCentralCache" > /etc/cron.d/liblemonldap-ng-portal-perl
if test "$PORTAL_CRON" != "no" -a "$PORTAL_CRON" != ""; then
echo "$PORTAL_CRON www-data [ -x /usr/share/lemonldap-ng/bin/purgeCentralCache ] && /usr/share/lemonldap-ng/bin/purgeCentralCache" > /etc/cron.d/liblemonldap-ng-portal-perl
fi
fi

cron -f
14 changes: 6 additions & 8 deletions base/install/etc/services.d/cron/run
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@ touch /etc/crontab /etc/cron.*/*

if test "$HANDLER_CRON" != "yes"; then
rm -f /etc/cron.d/liblemonldap-ng-handler-perl
fi

if test "$HANDLER_CRON" != "no" -a "$HANDLER_CRON" != ""; then
echo "$HANDLER_CRON www-data [ -x /usr/share/lemonldap-ng/bin/purgeLocalCache ] && /usr/share/lemonldap-ng/bin/purgeLocalCache" >/etc/cron.d/liblemonldap-ng-handler-perl
if test "$HANDLER_CRON" != "no" -a "$HANDLER_CRON" != ""; then
echo "$HANDLER_CRON www-data [ -x /usr/share/lemonldap-ng/bin/purgeLocalCache ] && /usr/share/lemonldap-ng/bin/purgeLocalCache" >/etc/cron.d/liblemonldap-ng-handler-perl
fi
fi

if test "$PORTAL_CRON" != "yes"; then
rm -f /etc/cron.d/liblemonldap-ng-portal-perl
fi

if test "$PORTAL_CRON" != "no" -a "$PORTAL_CRON" != ""; then
echo "$PORTAL_CRON www-data [ -x /usr/share/lemonldap-ng/bin/purgeCentralCache ] && /usr/share/lemonldap-ng/bin/purgeCentralCache" > /etc/cron.d/liblemonldap-ng-portal-perl
if test "$PORTAL_CRON" != "no" -a "$PORTAL_CRON" != ""; then
echo "$PORTAL_CRON www-data [ -x /usr/share/lemonldap-ng/bin/purgeCentralCache ] && /usr/share/lemonldap-ng/bin/purgeCentralCache" > /etc/cron.d/liblemonldap-ng-portal-perl
fi
fi

cron -f
7 changes: 7 additions & 0 deletions build-all
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@ LIST=${LIST:-pg base portal uwsgi-portal manager full ssoaas-fastcgi-server cron

if test "$(cd base && md5sum *.patch|sort)" != "$(cd base-no-s6 && md5sum *.patch|sort)"; then
echo "Base patches differ" >&2
exit 1
fi
if test "$(cd portal && md5sum *.patch|sort)" != "$(cd uwsgi-portal && md5sum *.patch|sort)"; then
echo "Portal patches differ" >&2
exit 1
fi
if test "$(cd manager && md5sum *.patch|sort)" != "$(cd full && md5sum *.patch|sort)"; then
echo "Manager patches differ" >&2
exit 1
fi
if test "`md5sum uwsgi-portal/install/etc/cont-init.d/update-nginx-portal-conf|sed -e 's/ .*$//'`" != "`md5sum portal/install/etc/cont-init.d/update-nginx-portal-conf|sed -e 's/ .*$//'`"; then
echo "Portal install differ" >&2
exit 1
fi

for i in $LIST; do
Expand Down

0 comments on commit 0024945

Please sign in to comment.