diff --git a/cmd/authelia-scripts/cmd/bootstrap.go b/cmd/authelia-scripts/cmd/bootstrap.go index 80a415a69..befd60994 100644 --- a/cmd/authelia-scripts/cmd/bootstrap.go +++ b/cmd/authelia-scripts/cmd/bootstrap.go @@ -54,6 +54,7 @@ func cmdBootstrapRun(_ *cobra.Command, _ []string) { createTemporaryDirectory() createPNPMDirectory() + pnpmInstall() bootstrapPrintln("Preparing /etc/hosts to serve subdomains of example.com...") prepareHostsFile() @@ -156,6 +157,17 @@ func createPNPMDirectory() { } } +func pnpmInstall() { + bootstrapPrintln("Installing web dependences ") + + cwd, err := os.Getwd() + if err != nil { + panic(err) + } + + shell(fmt.Sprintf("cd %s/web && pnpm install", cwd)) +} + func bootstrapPrintln(args ...interface{}) { a := make([]interface{}, 0) a = append(a, "[BOOTSTRAP]")