mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-01 10:56:31 +08:00
feature (chroot): add chroot option to nfs backends
This commit is contained in:
@ -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",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user