FIX: install

This commit is contained in:
2023-12-12 12:53:32 -03:00
parent f362054ea7
commit e38fdd20ee

View File

@ -1,17 +1,16 @@
#!/bin/bash #!/bin/bash
#docker run --rm -it -v ${PWD}/app:/app composer install docker run --rm -it -v ${PWD}/app:/app composer install
#docker run --rm -it -v ${PWD}/cli:/app composer install docker run --rm -it -v ${PWD}/cli:/app composer install
find ./app -name "*.env.sample" | cat -n | while read n f; do find ./app -name "*.env.sample" | cat -n | while read n f; do
echo ./app/"$n" cp "$f" "${f%.sample}"
#cp "$f" ./app/"$n"
done done
#cp ./cli/.env.sample ./cli/.env cp ./cli/.env.sample ./cli/.env
#cp ./.env.sample ./.env cp ./.env.sample ./.env
#echo "API_KEY=$(docker run --rm -it nginx openssl rand -hex 64)" > ./.key.env echo "API_KEY=$(docker run --rm -it nginx openssl rand -hex 64)" > ./.key.env
#printf "MYSQL_ROOT_PASSWORD=%s\nMYSQL_DATABASE=incoviba\nMYSQL_USER=incoviba\nMYSQL_PASSWORD=%s" "$(docker run --rm -it nginx openssl rand -hex 16)" "$(docker run --rm -it nginx openssl rand -hex 64)" > ./app/.db.env printf "MYSQL_ROOT_PASSWORD=%s\nMYSQL_DATABASE=incoviba\nMYSQL_USER=incoviba\nMYSQL_PASSWORD=%s" "$(docker run --rm -it nginx openssl rand -hex 16)" "$(docker run --rm -it nginx openssl rand -hex 64)" > ./app/.db.env