cacert-devsetup/docker/run-signer_client

16 lines
353 B
Text
Raw Permalink Normal View History

#!/bin/sh
set -eu
export SERIAL_PORT=/dev/ttyUSB0
socat -d -d "UNIX:/srv/sockets/signer" "PTY,link=${SERIAL_PORT}" 2>&1 &
sleep 1
echo "<?php mysql_connect(\"${MYSQL_WEBDB_HOSTNAME}\", \"${MYSQL_WEBDB_USER}\", \"${MYSQL_WEBDB_PASSWORD}\");" > "/home/cacert/www/includes/mysql.php"
cd /srv/CommModule/
touch client.pl-active
exec perl -w client.pl