Skip to content

Commit f8bbd94

Browse files
committed
it should be || instead of && in run.sh
1 parent cf389ae commit f8bbd94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ MIGRATE_DATABASE=false
1010

1111
# Inspired by https://pranavmalvawala.com/run-script-only-on-first-start-up & https://serverfault.com/a/1134812/1078165
1212
CONTAINER_FIRST_STARTUP="CONTAINER_FIRST_STARTUP"
13-
if [[ ! -e /data/$CONTAINER_FIRST_STARTUP ]] && [[ $MIGRATE_DATABASE = true ]]; then
13+
if [[ ! -e /data/$CONTAINER_FIRST_STARTUP ]] || [[ $MIGRATE_DATABASE = true ]]; then
1414
# Place your script that you only want to run on first startup.
1515
echo 'Initialize database first time only'
1616
touch /data/$CONTAINER_FIRST_STARTUP

0 commit comments

Comments
 (0)