@@ -6,27 +6,34 @@ if [ "$1" = 'frankenphp' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
66 # After the installation, the following block can be deleted
77 if [ ! -f composer.json ]; then
88 rm -Rf tmp/
9- composer create-project " symfony/skeleton $SYMFONY_VERSION " tmp --stability= " $STABILITY " --prefer-dist --no-progress --no-interaction --no-install
9+ composer create-project symfony/skeleton tmp --prefer-dist --no-progress --no-interaction --no-install
1010
1111 cd tmp
1212 cp -Rp . ..
1313 cd -
1414 rm -Rf tmp/
1515
16- composer config --no-plugins allow-plugins.williarin/cook true
1716 composer require " php:>=$PHP_VERSION " runtime/frankenphp-symfony
1817 composer config --json extra.symfony.docker ' true'
18+ composer config --no-plugins allow-plugins.williarin/cook true
19+ composer config minimum-stability dev
20+ composer require stochastix/core
21+ composer require --dev symfony/maker-bundle
22+
23+ sed -i ' /###> doctrine\/doctrine-bundle ###/,/###< doctrine\/doctrine-bundle ###/d' compose.yaml
24+ sed -i ' /###> symfony\/mercure-bundle ###/,/###< symfony\/mercure-bundle ###/d' compose.yaml
25+ sed -i ' /###> doctrine\/doctrine-bundle ###/,/###< doctrine\/doctrine-bundle ###/d' compose.override.yaml
26+ sed -i ' /###> symfony\/mercure-bundle ###/,/###< symfony\/mercure-bundle ###/d' compose.override.yaml
27+ sed -i ' /###> doctrine\/doctrine-bundle ###/,/###< doctrine\/doctrine-bundle ###/d' .env
28+ sed -i ' /###> symfony\/mercure-bundle ###/,/###< symfony\/mercure-bundle ###/d' .env
1929
2030 if grep -q ^DATABASE_URL= .env; then
21- echo ' To finish the installation please press Ctrl+C to stop Docker Compose and run: docker compose up --build --wait'
22- sleep infinity
31+ exit 0
2332 fi
2433 fi
2534
2635 if [ -z " $( ls -A ' vendor/' 2> /dev/null) " ]; then
2736 composer install --prefer-dist --no-progress --no-interaction
28- composer require stochastix/core
29- composer require --dev symfony/maker-bundle
3037 fi
3138
3239 # Display information about the current project
@@ -68,6 +75,7 @@ if [ "$1" = 'frankenphp' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
6875 fi
6976 fi
7077
78+ chown -R 1000:1000 .
7179 setfacl -R -m u:www-data:rwX -m u:" $( whoami) " :rwX var
7280 setfacl -dR -m u:www-data:rwX -m u:" $( whoami) " :rwX var
7381
0 commit comments