mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-04-18 14:17:12 -04:00
Split run.sh out of start.sh
This commit is contained in:
parent
cfebf0a659
commit
70c3da3918
14
run.sh
Executable file
14
run.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd /srv/ledgersmb
|
||||||
|
LSMB_CONFIG_FILE=${LSMB_CONFIG_FILE:-./local/conf/ledgersmb.yaml}
|
||||||
|
export LSMB_CONFIG_FILE
|
||||||
|
echo '--------- LEDGERSMB CONFIGURATION: ledgersmb.conf'
|
||||||
|
cat ${LSMB_CONFIG_FILE}
|
||||||
|
echo '--------- LEDGERSMB CONFIGURATION --- END'
|
||||||
|
|
||||||
|
# ':5762:' suppresses an uninitialized variable warning in starman
|
||||||
|
# the last colon means "don't connect using tls"; without it, there's a warning
|
||||||
|
exec starman --listen 0.0.0.0:5762 --workers ${LSMB_WORKERS:-5} \
|
||||||
|
-I lib -I old/lib \
|
||||||
|
--preload-app bin/ledgersmb-server.psgi
|
17
start.sh
17
start.sh
@ -1,16 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
$(dirname `readlink -f $BASH_SOURCE`)/config.sh || (echo "Failed configuration" ; exit)
|
home_dir="$(dirname `readlink -f $BASH_SOURCE`)"
|
||||||
|
"$home_dir/config.sh" || (echo "Failed configuration" ; exit)
|
||||||
cd /srv/ledgersmb
|
exec "$home_dir/run.sh"
|
||||||
LSMB_CONFIG_FILE=${LSMB_CONFIG_FILE:-./local/conf/ledgersmb.yaml}
|
|
||||||
export LSMB_CONFIG_FILE
|
|
||||||
echo '--------- LEDGERSMB CONFIGURATION: ledgersmb.conf'
|
|
||||||
cat ${LSMB_CONFIG_FILE}
|
|
||||||
echo '--------- LEDGERSMB CONFIGURATION --- END'
|
|
||||||
|
|
||||||
# ':5762:' suppresses an uninitialized variable warning in starman
|
|
||||||
# the last colon means "don't connect using tls"; without it, there's a warning
|
|
||||||
exec starman --listen 0.0.0.0:5762 --workers ${LSMB_WORKERS:-5} \
|
|
||||||
-I lib -I old/lib \
|
|
||||||
--preload-app bin/ledgersmb-server.psgi
|
|
||||||
|
Loading…
Reference in New Issue
Block a user