2018-04-21 22:38:30 +02:00
|
|
|
#!/bin/sh
|
2018-07-15 21:55:35 +02:00
|
|
|
set -e
|
2018-04-21 22:38:30 +02:00
|
|
|
|
2018-09-05 22:20:24 +02:00
|
|
|
SOURCE_DIR=$(realpath $(dirname "${0}"))/setup
|
2018-04-21 22:38:30 +02:00
|
|
|
|
|
|
|
# Configure CKAN DataPusher
|
|
|
|
mkdir -p /srv/ckan-datapusher/conf /srv/ckan-datapusher/data
|
2018-09-20 14:03:23 +02:00
|
|
|
cp ${SOURCE_DIR}/srv/ckan-datapusher/update-conf.sh /srv/ckan-datapusher/update-conf.sh
|
2018-04-21 22:38:30 +02:00
|
|
|
cp ${SOURCE_DIR}/srv/ckan-datapusher/conf/datapusher.wsgi /srv/ckan-datapusher/conf/datapusher.wsgi
|
|
|
|
cp ${SOURCE_DIR}/srv/ckan-datapusher/conf/datapusher_settings.py /srv/ckan-datapusher/conf/datapusher_settings.py
|
|
|
|
chown -R 8004:8004 /srv/ckan-datapusher/data
|
2018-09-05 22:20:24 +02:00
|
|
|
|
|
|
|
# Install service
|
|
|
|
cp ${SOURCE_DIR}/etc/init.d/ckan-datapusher /etc/init.d/ckan-datapusher
|
|
|
|
rc-update -u
|