mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
fix: pnpm permissions in dev mode (#3386)
* fix: pnpm permissions * Update cmd_bootstrap.go Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
This commit is contained in:
parent
0ee779250c
commit
3a8fdb3be4
|
@ -100,6 +100,18 @@ func createTemporaryDirectory() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func createPNPMDirectory() {
|
||||||
|
home := os.Getenv("HOME")
|
||||||
|
if home != "" {
|
||||||
|
bootstrapPrintln("Creating ", home+"/.pnpm-store")
|
||||||
|
err := os.MkdirAll(home+"/.pnpm-store", 0755)
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func bootstrapPrintln(args ...interface{}) {
|
func bootstrapPrintln(args ...interface{}) {
|
||||||
a := make([]interface{}, 0)
|
a := make([]interface{}, 0)
|
||||||
a = append(a, "[BOOTSTRAP]")
|
a = append(a, "[BOOTSTRAP]")
|
||||||
|
@ -230,6 +242,7 @@ func Bootstrap(cobraCmd *cobra.Command, args []string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
createTemporaryDirectory()
|
createTemporaryDirectory()
|
||||||
|
createPNPMDirectory()
|
||||||
|
|
||||||
bootstrapPrintln("Preparing /etc/hosts to serve subdomains of example.com...")
|
bootstrapPrintln("Preparing /etc/hosts to serve subdomains of example.com...")
|
||||||
prepareHostsFile()
|
prepareHostsFile()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user