Chroot for dwelling-upload-clean.
This commit is contained in:
parent
1212915bf6
commit
bb3a64d334
@ -46,6 +46,12 @@ func main() {
|
|||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if config.Chroot != "" {
|
||||||
|
if err := syscall.Chroot(config.Chroot); err != nil {
|
||||||
|
log.Fatalln("failed to chroot:", err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if err := substituteUser(config.User); err != nil {
|
if err := substituteUser(config.User); err != nil {
|
||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user