Spotter-VM/ckan/setup/etc/periodic/hourly/ckan

8 lines
254 B
Bash
Executable File

#!/bin/sh
# TODO
if docker ps | grep -q 'ckan$'; then
lxc-execute ckan -- paster --plugin=ckan tracking update -c /etc/ckan/ckan.ini >/dev/null
lxc-execute ckan -- paster --plugin=ckan search-index rebuild -r -c /etc/ckan/ckan.ini >/dev/null
fi