Frequently Asked Questions

What is the ckan_init.sh file in /root?

This file is a simple script which is configured to run each time the instance launches. It's job is to set CKAN's site_url variable to the current IP of the EC2 instance.

Each time the script runs it will check the /etc/ckan/default/production.ini file to see if the site_url variable is an IP address or a hostname. If it's an IP, it updates the value with the instance's current IP. If it's a hostname it's assumed the user has selected a domain for CKAN and therefore removes itself from boot execution in /etc/rc.local.

Help Topics:


Last Updated a year ago