mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 11:16:39 -05:00
Exit after creating the .env file so it can be edited before running the rest of the script
This commit is contained in:
parent
fa89022ff2
commit
304f63cbb6
1 changed files with 1 additions and 0 deletions
1
init.sh
1
init.sh
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue