Spotter-VM/lxc-apps/ckan-datapusher/install.sh

18 lines
577 B
Bash
Raw Normal View History

2018-04-21 22:38:30 +02:00
#!/bin/sh
2018-10-28 16:04:11 +01:00
set -ev
2018-04-21 22:38:30 +02:00
2018-10-26 15:02:11 +02:00
cd $(realpath $(dirname "${0}"))/install
2018-04-21 22:38:30 +02:00
# Configure CKAN DataPusher
mkdir -p /srv/ckan-datapusher/conf /srv/ckan-datapusher/data
2018-10-25 22:22:36 +02:00
cp srv/ckan-datapusher/conf/datapusher.wsgi /srv/ckan-datapusher/conf/datapusher.wsgi
cp srv/ckan-datapusher/conf/datapusher_settings.py /srv/ckan-datapusher/conf/datapusher_settings.py
2018-04-21 22:38:30 +02:00
chown -R 8004:8004 /srv/ckan-datapusher/data
2018-09-05 22:20:24 +02:00
# Install service
2018-10-25 22:22:36 +02:00
cp etc/init.d/ckan-datapusher /etc/init.d/ckan-datapusher
2018-09-05 22:20:24 +02:00
rc-update -u
# Install config update script
2018-10-25 22:22:36 +02:00
cp srv/ckan-datapusher/update-conf.sh /srv/ckan-datapusher/update-conf.sh