File: run-server-core

package info (click to toggle)
pqconnect 1.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,012 kB
  • sloc: python: 7,256; sh: 632; makefile: 75
file content (19 lines) | stat: -rwxr-xr-x 430 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

umask 077

. run/bin/activate

export LD_LIBRARY_PATH=/usr/local/lib
export KEYPATH=/etc/pqconnect/keys

pqcport=`cat /etc/pqconnect/config/pqcport`
keyport=`cat /etc/pqconnect/config/keyport`

if [ -f /etc/pqconnect/config/host ]
then
  host=`cat /etc/pqconnect/config/host`
  exec pqconnect-server -H "$host" -p "$pqcport" -k "$keyport" "$@" 2>&1
else
  exec pqconnect-server -p "$pqcport" -k "$keyport" "$@" 2>&1
fi