Exit after creating the .env file so it can be edited before running the rest of the script

This commit is contained in:
Kevin MacMartin 2015-07-11 02:43:33 -04:00
parent fa89022ff2
commit 304f63cbb6

View file

@ -47,6 +47,7 @@ trap 'error "script killed"' SIGINT SIGQUIT
[[ ! -f .env ]] && {
msg "Copying ${c_y}.env.example$c_w to ${c_y}.env$c_w with a randomly generated ${c_g}APP_KEY"
sed 's|^APP_KEY=.*|APP_KEY='"$(</dev/urandom tr -dc A-Za-z0-9 | head -c"${1:-32}")"'|' .env.example > .env
exit
}
msg "Running: ${c_m}composer installl --no-dev"