Added support for Moodle WebApp
This commit is contained in:
parent
99ced73816
commit
523592dcad
|
@ -34,7 +34,7 @@ class MoodleBackend(WebAppServiceMixin, ServiceController):
|
||||||
touch %(app_path)s/.lock
|
touch %(app_path)s/.lock
|
||||||
# Weekly caching
|
# Weekly caching
|
||||||
moodle_date=$(date -r $(readlink %(cms_cache_dir)s/moodle) +%%s || echo 0)
|
moodle_date=$(date -r $(readlink %(cms_cache_dir)s/moodle) +%%s || echo 0)
|
||||||
if [[ $moodle_date -lt $(($(date +%%s)+7*24*60*60)) ]]; then
|
if [[ $moodle_date -lt $(($(date +%%s)-7*24*60*60)) ]]; then
|
||||||
moodle_url=$(wget https://download.moodle.org/releases/latest/ -O - -q \\
|
moodle_url=$(wget https://download.moodle.org/releases/latest/ -O - -q \\
|
||||||
| tr ' ' '\\n' \\
|
| tr ' ' '\\n' \\
|
||||||
| grep 'moodle-latest.*.tgz"' \\
|
| grep 'moodle-latest.*.tgz"' \\
|
||||||
|
|
Loading…
Reference in New Issue