From 3794745bee0921c6c64f42242cb6b9f24f57d620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Nu=C3=B1ez?= <10672208+mind-ar@users.noreply.github.com> Date: Sun, 4 Sep 2022 23:13:59 -0300 Subject: [PATCH] build: bootstrap: add pnpm install (#3959) Co-authored-by: James Elliott --- cmd/authelia-scripts/cmd/bootstrap.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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]")