mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/cqpserver.git
synced 2025-01-13 03:30:35 +00:00
Simplify startup script
This commit is contained in:
parent
9e146c538b
commit
7a3a2ddf9a
@ -1,10 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
if [[ "$#" -eq 0 || "${1}" == "cqpserver" ]]; then
|
if [[ "$#" -eq 0 || "${1}" == "cqpserver" ]]; then
|
||||||
CQPSERVER_HOST="${CQPSERVER_HOST:-*}"
|
echo "host ${CQPSERVER_HOST:-*};" > cqpserver.init
|
||||||
CQPSERVER_PASSWORD="${CQPSERVER_PASSWORD:-}"
|
echo "user ${CQPSERVER_USER:-anonymous} \"${CQPSERVER_PASSWORD:-}\";" >> cqpserver.init
|
||||||
CQPSERVER_USER="${CQPSERVER_USER:-anonymous}"
|
|
||||||
echo "host ${CQPSERVER_HOST};" > cqpserver.init
|
|
||||||
echo "user ${CQPSERVER_USER} \"${CQPSERVER_PASSWORD}\";" >> cqpserver.init
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$#" -eq 0 ]]; then
|
if [[ "$#" -eq 0 ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user