Mercurial > p > roundup > code
diff scripts/Docker/roundup_start @ 7676:678d235f024d
fix: use POSIX supported test a = b rather than a == b.
Courtesy of https://www.shellcheck.net/
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 24 Oct 2023 21:53:22 -0400 |
| parents | b3c3e508b18f |
| children | c7788bdd3760 |
line wrap: on
line diff
--- a/scripts/Docker/roundup_start Tue Oct 24 21:50:39 2023 -0400 +++ b/scripts/Docker/roundup_start Tue Oct 24 21:53:22 2023 -0400 @@ -179,7 +179,7 @@ # we have a valid config.ini so init database if not done # if we get errors, the db directory should be missing # and we print an error. - if [ $do_exit == 0 -a ! -e "$directory/db" ]; then + if [ $do_exit = 0 -a ! -e "$directory/db" ]; then printf "Initializing tracker %s\n" "$tracker" if ! roundup-admin -i "$directory" init; then # something went wrong. @@ -193,7 +193,7 @@ done # for "$@" # if any config.ini needs editing don't start up. -if [ $do_exit == 0 ]; then +if [ $do_exit = 0 ]; then # make roundup-server process pid 1 with exec exec roundup-server -n 0.0.0.0 "$@" fi
