Spotter-VM/ushahidi/setup/etc/periodic/15min/ushahidi

11 lines
603 B
Plaintext
Raw Normal View History

2018-01-24 15:18:55 +01:00
#!/bin/sh
2018-09-14 10:33:07 +02:00
# TODO: -u 8014 -g 8014 ?
if [ -e /run/openrc/started/ushahidi ]; then
lxc-attach ushahidi -- sh -c 'cd /srv/ushahidi/platform; bin/ushahidi dataprovider outgoing' >/dev/null
lxc-attach ushahidi -- sh -c 'cd /srv/ushahidi/platform; bin/ushahidi dataprovider incoming' >/dev/null
lxc-attach ushahidi -- sh -c 'cd /srv/ushahidi/platform; bin/ushahidi savedsearch' >/dev/null
lxc-attach ushahidi -- sh -c 'cd /srv/ushahidi/platform; bin/ushahidi notification queue' >/dev/null
lxc-attach ushahidi -- sh -c 'cd /srv/ushahidi/platform; bin/ushahidi webhook send' >/dev/null
fi