Spotter-VM/seeddms/install/etc/periodic/hourly/seeddms

7 lines
261 B
Bash
Executable File

#!/bin/sh
if [ -e /run/openrc/started/seeddms ]; then
# TODO: Check why this stopped working after 5.1.7
lxc-attach -u 8010 -g 8010 seeddms -- sh -c "cd /srv/seeddms/seeddms/utils; php indexer.php --config /srv/seeddms/conf/settings.xml" >/dev/null
fi