-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated installer to initialite version correctly.
- Loading branch information
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,7 +164,7 @@ function get_cli_options(array $argv, int $start = 2) | |
{ | ||
"name": "local/test", | ||
"require": { | ||
"lotgd/crate-html": "dev-master" | ||
"lotgd/crate-html": ">=0.5.3" | ||
}, | ||
"license": "AGPL3", | ||
"authors": [ | ||
|
@@ -185,7 +185,7 @@ function get_cli_options(array $argv, int $start = 2) | |
JSON; | ||
|
||
|
||
out("Daenerys installer, version 0.5.0"); | ||
out("Daenerys installer, version 0.5.3"); | ||
|
||
if($argc < 2) { | ||
out(<<<MSG | ||
|
@@ -231,7 +231,7 @@ function get_cli_options(array $argv, int $start = 2) | |
out("Installation of daenerys"); | ||
|
||
// @ToDo: Let the user set some options here. | ||
$minVersion = "0.5.0-alpha"; | ||
$minVersion = "0.5.1"; | ||
|
||
file_put_contents("composer.json", $composer); | ||
|
||
|
@@ -252,17 +252,21 @@ function get_cli_options(array $argv, int $start = 2) | |
|
||
# Initialise database | ||
`vendor/bin/daenerys database:init`; | ||
`vendor/bin/daenerys crate:role:add ROLE_SUPERUSER`; | ||
|
||
if (!isset($argOptions["nointeraction"])) { | ||
$name = readline("Admin account name [admin]: ") ?: "admin"; | ||
$password = readline("Password [changeme]: ") ?: "changeme"; | ||
$email = readline("Email address for login [[email protected]]: ") ?: "[email protected]"; | ||
|
||
`vendor/bin/daenerys crate:user:add --username="$name" --password="$password" --email="$email"`; | ||
`vendor/bin/daenerys crate:user:add "$name" "$email" "$password"`; | ||
} else { | ||
`vendor/bin/daenerys crate:user:add --username="admin" --password="changeme" --email="[email protected]"`; | ||
$name = "admin"; | ||
`vendor/bin/daenerys crate:user:add admin "[email protected]" changeme`; | ||
} | ||
|
||
`vendor/bin/daenerys crate:role:grant ROLE_SUPERUSER $name`; | ||
|
||
# Install assets | ||
`cp vendor/lotgd/crate-html/public/css/* css`; | ||
`cp vendor/lotgd/crate-html/public/icons/* icons`; | ||
|