From 0926190a7051dc84174304b2afca9712db81bbfb Mon Sep 17 00:00:00 2001 From: Disassembler Date: Tue, 14 Aug 2018 18:25:20 +0200 Subject: [PATCH] Fix CKAN data files ownership, resolves #274 --- ckan.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckan.sh b/ckan.sh index c3c2152..7053ae5 100755 --- a/ckan.sh +++ b/ckan.sh @@ -32,7 +32,6 @@ service solr restart # Configure CKAN mkdir -p /srv/ckan/conf /srv/ckan/data -chown -R 8003:8003 /srv/ckan/data export CKAN_SECRET=$(head -c 18 /dev/urandom | base64) export CKAN_UUID=$(cat /proc/sys/kernel/random/uuid) envsubst <${SOURCE_DIR}/srv/ckan/conf/ckan.ini >/srv/ckan/conf/ckan.ini @@ -47,6 +46,7 @@ fi docker run --rm -h ckan --link postgres --link redis --link solr -v /srv/ckan/conf:/etc/ckan -v /srv/ckan/data:/srv/ckan/storage ckan paster --plugin=ckan db init -c /etc/ckan/ckan.ini docker run --rm -h ckan --link postgres --link redis --link solr -v /srv/ckan/conf:/etc/ckan -v /srv/ckan/data:/srv/ckan/storage ckan paster --plugin=ckanext-spatial spatial initdb -c /etc/ckan/ckan.ini docker run --rm -h ckan --link postgres --link redis --link solr -v /srv/ckan/conf:/etc/ckan -v /srv/ckan/data:/srv/ckan/storage ckan paster --plugin=ckan datastore set-permissions -c /etc/ckan/ckan.ini | docker exec -i postgres psql +chown -R 8003:8003 /srv/ckan/data # Create admin account export CKAN_ADMIN_USER="admin"