Files
oficial/install.sh

17 lines
573 B
Bash
Raw Permalink Normal View History

2023-12-12 12:47:58 -03:00
#!/bin/bash
2023-12-12 12:53:32 -03:00
docker run --rm -it -v ${PWD}/app:/app composer install
docker run --rm -it -v ${PWD}/cli:/app composer install
2023-12-12 12:47:58 -03:00
find ./app -name "*.env.sample" | cat -n | while read n f; do
2023-12-12 12:53:32 -03:00
cp "$f" "${f%.sample}"
2023-12-12 12:47:58 -03:00
done
2023-12-12 12:53:32 -03:00
cp ./cli/.env.sample ./cli/.env
2023-12-12 12:47:58 -03:00
2023-12-12 12:53:32 -03:00
cp ./.env.sample ./.env
2023-12-12 12:47:58 -03:00
2023-12-12 12:53:32 -03:00
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
2023-12-12 12:47:58 -03:00