From 3aefcdf05329435797df0038b8d559a2e2f955fe Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Sun, 13 Nov 2022 21:32:26 +1100 Subject: [PATCH] refactor(cmd): restrict bootstrap pnpm tasks to dev environment (#4370) --- cmd/authelia-scripts/cmd/bootstrap.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/authelia-scripts/cmd/bootstrap.go b/cmd/authelia-scripts/cmd/bootstrap.go index 47a630818..ce2583e6c 100644 --- a/cmd/authelia-scripts/cmd/bootstrap.go +++ b/cmd/authelia-scripts/cmd/bootstrap.go @@ -53,8 +53,11 @@ func cmdBootstrapRun(_ *cobra.Command, _ []string) { } createTemporaryDirectory() - createPNPMDirectory() - pnpmInstall() + + if os.Getenv("CI") != "true" { + createPNPMDirectory() + pnpmInstall() + } bootstrapPrintln("Preparing /etc/hosts to serve subdomains of example.com...") prepareHostsFile()