comparison 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
comparison
equal deleted inserted replaced
7675:b3c3e508b18f 7676:678d235f024d
177 fi 177 fi
178 178
179 # we have a valid config.ini so init database if not done 179 # we have a valid config.ini so init database if not done
180 # if we get errors, the db directory should be missing 180 # if we get errors, the db directory should be missing
181 # and we print an error. 181 # and we print an error.
182 if [ $do_exit == 0 -a ! -e "$directory/db" ]; then 182 if [ $do_exit = 0 -a ! -e "$directory/db" ]; then
183 printf "Initializing tracker %s\n" "$tracker" 183 printf "Initializing tracker %s\n" "$tracker"
184 if ! roundup-admin -i "$directory" init; then 184 if ! roundup-admin -i "$directory" init; then
185 # something went wrong. 185 # something went wrong.
186 # verify it looks like a tracker directory 186 # verify it looks like a tracker directory
187 # then remove the database directory 187 # then remove the database directory
191 do_exit=1 191 do_exit=1
192 fi 192 fi
193 done # for "$@" 193 done # for "$@"
194 194
195 # if any config.ini needs editing don't start up. 195 # if any config.ini needs editing don't start up.
196 if [ $do_exit == 0 ]; then 196 if [ $do_exit = 0 ]; then
197 # make roundup-server process pid 1 with exec 197 # make roundup-server process pid 1 with exec
198 exec roundup-server -n 0.0.0.0 "$@" 198 exec roundup-server -n 0.0.0.0 "$@"
199 fi 199 fi
200 200
201 exit 0 201 exit 0

Roundup Issue Tracker: http://roundup-tracker.org/