We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf389ae commit f8bbd94Copy full SHA for f8bbd94
scripts/run.sh
@@ -10,7 +10,7 @@ MIGRATE_DATABASE=false
10
11
# Inspired by https://pranavmalvawala.com/run-script-only-on-first-start-up & https://serverfault.com/a/1134812/1078165
12
CONTAINER_FIRST_STARTUP="CONTAINER_FIRST_STARTUP"
13
-if [[ ! -e /data/$CONTAINER_FIRST_STARTUP ]] && [[ $MIGRATE_DATABASE = true ]]; then
+if [[ ! -e /data/$CONTAINER_FIRST_STARTUP ]] || [[ $MIGRATE_DATABASE = true ]]; then
14
# Place your script that you only want to run on first startup.
15
echo 'Initialize database first time only'
16
touch /data/$CONTAINER_FIRST_STARTUP
0 commit comments