Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
fix(docker): Entrypoint script gen command
Browse files Browse the repository at this point in the history
Signed-off-by: qwqcode <[email protected]>
  • Loading branch information
qwqcode committed Jun 7, 2022
1 parent a244286 commit 60ed699
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
set -e

if [[ ! -e /data/artalk-go.yml ]]; then
if [[ ! -e /conf.yml ]]; then
if [ ! -e /data/artalk-go.yml ] && [ "$1" != 'gen' ]; then
if [ ! -e /conf.yml ]; then
# Generate new config
artalk-go gen conf /data/artalk-go.yml
echo "$(date) [info] Generate new config file to '/data/artalk-go.yml'"
Expand All @@ -21,5 +22,5 @@ if [[ ! -e /data/artalk-go.yml ]]; then
fi
fi

# Run ArtalkGo Server
# Run ArtalkGo
artalk-go "$@"

0 comments on commit 60ed699

Please sign in to comment.