Skip to content

Commit

Permalink
[build] Couple of additions to creating the config file.
Browse files Browse the repository at this point in the history
 - set the site_id from the ckan instance name
 - further restrict the match for the log file path
  • Loading branch information
Ian Murray committed Jan 4, 2012
1 parent ea56f6b commit 973e61e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckan_deb/usr/lib/ckan/common.sh
Expand Up @@ -112,9 +112,10 @@ ckan_create_config_file () {
fi
sed -e "s,^\(email_to\)[ =].*,\1 = root," \
-e "s,^\(error_email_from\)[ =].*,\1 = ckan-${INSTANCE}@`hostname`," \
-e "s,# ckan\.site_id = ckan.net,ckan.site_id = ${INSTANCE}," \
-e "s,^\(cache_dir\)[ =].*,\1 = /var/lib/ckan/${INSTANCE}/data," \
-e "s,^\(who\.config_file\)[ =].*,\1 = /etc/ckan/${INSTANCE}/who.ini," \
-e "s,ckan\.log,/var/log/ckan/${INSTANCE}/${INSTANCE}.log," \
-e "s,\"ckan\.log\",\"/var/log/ckan/${INSTANCE}/${INSTANCE}.log\"," \
-e "s,#solr_url = http://127.0.0.1:8983/solr,solr_url = http://127.0.0.1:8983/solr," \
-i /etc/ckan/${INSTANCE}/${INSTANCE}.ini
sudo chown ckan${INSTANCE}:ckan${INSTANCE} /etc/ckan/${INSTANCE}/${INSTANCE}.ini
Expand Down

0 comments on commit 973e61e

Please sign in to comment.