Fixes #9705 Prevent syntax error in startup.sh

If SESSION_DRIVER is not defined it leads to a syntax error.
This commit is contained in:
Johannes Münch 2021-06-12 20:21:43 +02:00
parent aae6a8fc6c
commit 8f4b88a877

View file

@ -54,7 +54,7 @@ then
cp -ax /var/www/html/vendor/laravel/passport/database/migrations/* /var/www/html/database/migrations/ cp -ax /var/www/html/vendor/laravel/passport/database/migrations/* /var/www/html/database/migrations/
fi fi
if [ $SESSION_DRIVER = "database" ] if [ "$SESSION_DRIVER" = "database" ]
then 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 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 fi