Show a warning when using wrong executable
This commit updates the 'wdcli' command to show a warning when using the wrong executable.
This commit is contained in:
parent
c4de1f2a06
commit
35bb95c5ca
29 changed files with 176 additions and 30 deletions
|
|
@ -27,7 +27,7 @@ type bootstrap struct {
|
|||
func (bootstrap) Description() wisski_distillery.Description {
|
||||
return wisski_distillery.Description{
|
||||
Requirements: env.Requirements{
|
||||
NeedsConfig: false,
|
||||
NeedsDistillery: false,
|
||||
},
|
||||
Command: "bootstrap",
|
||||
Description: "Bootstraps the installation of a Distillery System",
|
||||
|
|
@ -92,8 +92,8 @@ func (bs bootstrap) Run(context wisski_distillery.Context) error {
|
|||
}
|
||||
|
||||
// TODO: Read these from the command line?
|
||||
wdcliPath := filepath.Join(root, "wdcli")
|
||||
envPath := filepath.Join(root, ".env")
|
||||
wdcliPath := filepath.Join(root, env.Executable)
|
||||
envPath := filepath.Join(root, env.ConfigFile)
|
||||
domain := bs.Hostname
|
||||
if domain == "" {
|
||||
domain = hostname.FQDN()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue