7 lines
150 B
Bash
Executable File
7 lines
150 B
Bash
Executable File
#!/bin/sh
|
|
|
|
HOST="${1}"
|
|
[ "${2}" != "443" ] && HOST="${1}:${2}"
|
|
|
|
sed -i "s|^ckan\.site_url.*|ckan.site_url = https://${HOST}|" /srv/ckan/conf/ckan.ini
|