forked from jan/cacert-devsetup
Make signer and signer_client work with minimal changes
This commit is contained in:
parent
5c924ee206
commit
0857806acf
3 changed files with 8 additions and 4 deletions
|
@ -101,6 +101,7 @@ services:
|
|||
volumes:
|
||||
- certstaging:/srv/certs
|
||||
- signersockets:/srv/sockets
|
||||
- webdbincl:/home/cacert/www/includes/
|
||||
depends_on:
|
||||
- db
|
||||
- smtp
|
||||
|
@ -127,3 +128,4 @@ volumes:
|
|||
certstaging: { }
|
||||
signersockets: { }
|
||||
signerdata: { }
|
||||
webdbincl: { }
|
||||
|
|
|
@ -23,7 +23,7 @@ if [ ! -f /srv/ca/gpg/gpg_root_0/secring.gpg ]; then cp /srv/testca/gpg/gpg_root
|
|||
if [ ! -f /srv/ca/gpg/gpg_root_0/pubring.gpg ]; then cp /srv/testca/gpg/gpg_root_0/pubring.gpg /srv/ca/gpg/gpg_root_0/pubring.gpg; fi
|
||||
|
||||
rm -f /srv/sockets/signer
|
||||
socat -d -d PTY,link=/dev/ttyUSB0 UNIX-LISTEN:/srv/sockets/signer 2>&1 &
|
||||
socat -d -d "PTY,link=${SERIAL_PORT}" UNIX-LISTEN:/srv/sockets/signer 2>&1 &
|
||||
sleep 1
|
||||
|
||||
cd /srv/CommModule/
|
||||
|
|
|
@ -2,10 +2,12 @@
|
|||
|
||||
set -eu
|
||||
|
||||
socat -d -d UNIX:/srv/sockets/signer PTY,link=/dev/ttyS0 2>&1 &
|
||||
export SERIAL_PORT=/dev/ttyUSB0
|
||||
|
||||
socat -d -d "UNIX:/srv/sockets/signer" "PTY,link=${SERIAL_PORT}" 2>&1 &
|
||||
sleep 1
|
||||
|
||||
export SERIAL_PORT=/dev/ttyS0
|
||||
echo "<?php mysql_connect(\"${MYSQL_WEBDB_HOSTNAME}\", \"${MYSQL_WEBDB_USER}\", \"${MYSQL_WEBDB_PASSWORD}\");" > "/home/cacert/www/includes/mysql.php"
|
||||
|
||||
cd /srv/CommModule/
|
||||
|
||||
|
|
Loading…
Reference in a new issue