mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-13 12:33:25 +02:00
Make config.ini file optional (#531)
This commit is contained in:
parent
705ffef8a9
commit
9fcb87aeed
2 changed files with 11 additions and 7 deletions
|
|
@ -42,7 +42,4 @@ ENV PATH="/opt/venv/bin:$PATH"
|
|||
COPY "start-squeaknode.sh" .
|
||||
RUN chmod +x start-squeaknode.sh
|
||||
|
||||
RUN ls -l .
|
||||
|
||||
RUN touch config.ini
|
||||
CMD ["./start-squeaknode.sh"]
|
||||
|
|
|
|||
|
|
@ -12,7 +12,14 @@ set -e
|
|||
sleep 10
|
||||
|
||||
# Start using the run server command
|
||||
exec runsqueaknode \
|
||||
--config config.ini \
|
||||
--log-level INFO \
|
||||
run-server
|
||||
if [ -f config.ini ]; then
|
||||
exec runsqueaknode \
|
||||
--config config.ini \
|
||||
--log-level INFO \
|
||||
run-server
|
||||
else
|
||||
exec runsqueaknode \
|
||||
--config config.ini \
|
||||
--log-level INFO \
|
||||
run-server
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue