Skip to content

Commit

Permalink
Fixes #9705 Prevent syntax error in startup.sh
Browse files Browse the repository at this point in the history
If SESSION_DRIVER is not defined it leads to a syntax error.
  • Loading branch information
derdeagle committed Jun 12, 2021
1 parent aae6a8f commit 8f4b88a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ then
cp -ax /var/www/html/vendor/laravel/passport/database/migrations/* /var/www/html/database/migrations/
fi

if [ $SESSION_DRIVER = "database" ]
if [ "$SESSION_DRIVER" = "database" ]
then
cp -ax /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Console/stubs/database.stub /var/www/html/database/migrations/2021_05_06_0000_create_sessions_table.php
fi
Expand Down

0 comments on commit 8f4b88a

Please sign in to comment.