Browse Source

Issue #209: Make run.sh set a sane and predictable hostname

For remote debugging, it is important to be able to determine the
running host name, in order to properly define URI mappings. They are
usually in the form:

Remote: //<hostname>/kohadevbox/koha
Local:  /home/tcohen/git/koha

In the case of KTD, the hostname is fixed to 'kohadevbox'

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
merge-requests/143/head
Tomás Cohen Arazi 4 years ago
parent
commit
f01fae4601
  1. 5
      files/run.sh

5
files/run.sh

@ -11,6 +11,11 @@ export KOHA_INTRANET_URL=http://${KOHA_INTRANET_FQDN}:${KOHA_INTRANET_PORT}
export KOHA_OPAC_FQDN=${KOHA_OPAC_PREFIX}${KOHA_INSTANCE}${KOHA_OPAC_SUFFIX}${KOHA_DOMAIN}
export KOHA_OPAC_URL=http://${KOHA_OPAC_FQDN}:${KOHA_OPAC_PORT}
# Set a fixed hostname
echo "kohadevbox" > /etc/hostname
echo "127.0.0.1 kohadevbox" >> /etc/hosts
hostname kohadevbox
# Clone before calling cp_debian_files.pl
if [ "${DEBUG_GIT_REPO_MISC4DEV}" = "yes" ]; then
rm -rf ${BUILD_DIR}/misc4dev

Loading…
Cancel
Save