1
0

Chroot for dwelling-upload-clean.

This commit is contained in:
Alexander Andreev 2022-02-08 23:12:53 +04:00
parent 1212915bf6
commit bb3a64d334
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -46,6 +46,12 @@ func main() {
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 {
log.Fatalln(err)
}