mirror of
https://github.com/laurivosandi/certidude
synced 2024-12-23 00:25:18 +00:00
Work around Travis' long hostnames in const.py instead
This commit is contained in:
parent
00c0bdfb52
commit
d68a9acac2
@ -16,7 +16,6 @@ cache:
|
|||||||
directories:
|
directories:
|
||||||
- $HOME/.cache/pip
|
- $HOME/.cache/pip
|
||||||
addons:
|
addons:
|
||||||
hostname: buildbot
|
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- python-ldap
|
- python-ldap
|
||||||
|
@ -13,7 +13,12 @@ SIGNER_SOCKET_PATH = os.path.join(CONFIG_DIR, "signer.sock") if os.getuid() else
|
|||||||
SIGNER_PID_PATH = os.path.join(CONFIG_DIR, "signer.pid") if os.getuid() else "/run/certidude/signer.pid"
|
SIGNER_PID_PATH = os.path.join(CONFIG_DIR, "signer.pid") if os.getuid() else "/run/certidude/signer.pid"
|
||||||
SIGNER_LOG_PATH = os.path.join(CONFIG_DIR, "signer.log") if os.getuid() else "/var/log/certidude-signer.log"
|
SIGNER_LOG_PATH = os.path.join(CONFIG_DIR, "signer.log") if os.getuid() else "/var/log/certidude-signer.log"
|
||||||
|
|
||||||
FQDN = socket.getaddrinfo(socket.gethostname(), 0, socket.AF_INET, 0, 0, socket.AI_CANONNAME)[0][3]
|
# Work around the 'asn1 encoding routines:ASN1_mbstring_ncopy:string too long'
|
||||||
|
# issue within OpenSSL ASN1 parser while running on Travis
|
||||||
|
if os.getenv("TRAVIS"):
|
||||||
|
FQDN = "buildbot"
|
||||||
|
else:
|
||||||
|
FQDN = socket.getaddrinfo(socket.gethostname(), 0, socket.AF_INET, 0, 0, socket.AI_CANONNAME)[0][3]
|
||||||
|
|
||||||
if "." in FQDN:
|
if "." in FQDN:
|
||||||
HOSTNAME, DOMAIN = FQDN.split(".", 1)
|
HOSTNAME, DOMAIN = FQDN.split(".", 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user