mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 16:32:31 +01:00
feature (chroot): add chroot option to nfs backends
This commit is contained in:
parent
763201eaa6
commit
409f1bc09f
2 changed files with 14 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ func (this NfsShare) LoginForm() Form {
|
|||
Name: "advanced",
|
||||
Type: "enable",
|
||||
Placeholder: "Advanced",
|
||||
Target: []string{"nfs_uid", "nfs_gid", "nfs_machinename"},
|
||||
Target: []string{"nfs_uid", "nfs_gid", "nfs_machinename", "nfs_chroot"},
|
||||
},
|
||||
FormElement{
|
||||
Id: "nfs_uid",
|
||||
|
|
@ -103,6 +103,12 @@ func (this NfsShare) LoginForm() Form {
|
|||
Type: "text",
|
||||
Placeholder: "machine name",
|
||||
},
|
||||
FormElement{
|
||||
Id: "nfs_chroot",
|
||||
Name: "path",
|
||||
Type: "text",
|
||||
Placeholder: "chroot",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ func (this Nfs4Share) LoginForm() Form {
|
|||
Name: "advanced",
|
||||
Type: "enable",
|
||||
Placeholder: "Advanced",
|
||||
Target: []string{"nfs_uid", "nfs_gid", "nfs_machinename"},
|
||||
Target: []string{"nfs_uid", "nfs_gid", "nfs_machinename", "nfs_chroot"},
|
||||
},
|
||||
FormElement{
|
||||
Id: "nfs_uid",
|
||||
|
|
@ -97,6 +97,12 @@ func (this Nfs4Share) LoginForm() Form {
|
|||
Type: "text",
|
||||
Placeholder: "machine name",
|
||||
},
|
||||
FormElement{
|
||||
Id: "nfs_chroot",
|
||||
Name: "path",
|
||||
Type: "text",
|
||||
Placeholder: "chroot",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue