From f9cc2834771c88dc4835423d072d43404d79a3dd Mon Sep 17 00:00:00 2001 From: Disassembler Date: Tue, 24 Sep 2019 10:53:12 +0200 Subject: [PATCH] Fix CKAN scripts --- lxc-apps/ckan/install.sh | 16 ++++++++-------- lxc-apps/ckan/uninstall.sh | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lxc-apps/ckan/install.sh b/lxc-apps/ckan/install.sh index e1bf46b..5e8ce8e 100755 --- a/lxc-apps/ckan/install.sh +++ b/lxc-apps/ckan/install.sh @@ -16,28 +16,28 @@ cp postgres_data/pg_hba.conf /srv/ckan/postgres_data/pg_hba.conf # Create database export CKAN_PWD=$(head -c 18 /dev/urandom | base64 | tr -d '+/=') export CKAN_DS_PWD=$(head -c 18 /dev/urandom | base64 | tr -d '+/=') -lxc-start ckan_postgres #TODO: wait? +service ckan_postgres start #TODO: wait? envsubst /srv/ckan/solr_data/solr.xml chown -R 108983:108983 /srv/ckan/solr_data -lxc-start ckan_solr # TODO: wait? +service ckan_solr start # TODO: add ready / wait # Configure CKAN Solr core lxc-attach -u 8983 -g 8983 ckan_solr -- solr create -p 8983 -c ckan # TODO: wait to ensure creation? -lxc-stop ckan_solr +service ckan_solr stop cp solr_data/ckan/conf/schema.xml /srv/ckan/solr_data/ckan/conf/schema.xml cp solr_data/ckan/conf/solrconfig.xml /srv/ckan/solr_data/ckan/conf/solrconfig.xml chown 108983:108983 /srv/ckan/solr_data/ckan/conf/schema.xml # TODO: je to potreba? -lxc-start ckan_solr # TODO: wait? +service ckan_solr start # Configure CKAN DataPusher mkdir -p /srv/ckan/datapusher_conf /srv/ckan/datapusher_data @@ -71,9 +71,9 @@ envsubst