11 lines
440 B
Bash
11 lines
440 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
HOST="${DOMAIN}"
|
||
|
[ "${PORT}" != "443" ] && HOST="${DOMAIN}:${PORT}"
|
||
|
sed -i "s|\(^ckan\.site_url = \).*|\1https://ckan.${HOST}|" /srv/ckan/ckan_conf/ckan.ini
|
||
|
|
||
|
sed -i "s|\(^smtp\.mail_from = \).*|\1${EMAIL}|" /srv/ckan/ckan_conf/ckan.ini
|
||
|
sed -i "s|\(^ckanext\.geoview\.gapi_key = \).*|\1${GMAPS_API_KEY}|" /srv/ckan/ckan_conf/ckan.ini
|
||
|
|
||
|
sed -i "s|\(^FROM_EMAIL = \).*|\1'${EMAIL}'|" /srv/ckan/datapusher_conf/datapusher_settings.py
|