Commit 922aa899 authored by Richard Mansfield's avatar Richard Mansfield

Log time of template updates and reduce frequency

parent dfb0675d
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
# Regular cron jobs for the custom-site-mahara-langpacks package # Regular cron jobs for the custom-site-mahara-langpacks package
# #
22 * * * * maharabot [ -x /usr/lib/mahara-langpacks/langpacks.sh ] && /usr/lib/mahara-langpacks/langpacks.sh >> /var/log/mahara-langpacks/langpacks.log 2>&1 22 * * * * maharabot [ -x /usr/lib/mahara-langpacks/langpacks.sh ] && /usr/lib/mahara-langpacks/langpacks.sh >> /var/log/mahara-langpacks/langpacks.log 2>&1
52 * * * * maharabot [ -x /usr/lib/mahara-langpacks/update-pot.sh ] && /usr/lib/mahara-langpacks/update-pot.sh >> /var/log/mahara-langpacks/update-pot.log 2>&1 52 7 * * * maharabot [ -x /usr/lib/mahara-langpacks/update-pot.sh ] && /usr/lib/mahara-langpacks/update-pot.sh >> /var/log/mahara-langpacks/update-pot.log 2>&1
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
# this is expected to define DATA, SCRIPTS, DOCROOT # this is expected to define DATA, SCRIPTS, DOCROOT
. /etc/mahara-langpacks.conf . /etc/mahara-langpacks.conf
echo -n "Checking for changes to strings "
date "+%Y-%m-%d %H:%M:%S"
if [ ! -w ${DATA} ]; then if [ ! -w ${DATA} ]; then
echo "${DATA} not writable" echo "${DATA} not writable"
exit 1 exit 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment