Frequently Asked Question

What is the ckan_init.sh file in /root?
Last Updated 22 days ago

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 variableto the current IP of the EC2 instance, and to generate a new default configuration file.

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 still an IP, it updates the value with the instance's current IP. If it's a hostname then it's assumed that the end user has selected a domain for CKAN and so does nothing.

In addition to the above, it also generates the /etc/ckan/default/default.ini file to ensure no one instance has the same secret keys as another.

Please Wait!

Please wait... it will take a second!