Put Dir and Owner in sequence
This commit is contained in:
parent
42690f1d50
commit
918e931728
2 changed files with 10 additions and 3 deletions
|
|
@ -371,7 +371,7 @@ impl<D: Clone + AsRef<str>, P: Policy> ResourceLocator<PhpFpmPool<D>> for Defaul
|
|||
impl<D: Clone + AsRef<str>, P, POLICY: Policy> ResourceLocator<SystemdSocketService<D, P>>
|
||||
for DefaultLocator<POLICY>
|
||||
{
|
||||
type Prerequisites = (Dir<PathBuf>, Owner<PathBuf>);
|
||||
type Prerequisites = Dir<PathBuf>;
|
||||
fn locate(
|
||||
resource: &SystemdSocketService<D, P>,
|
||||
) -> (
|
||||
|
|
@ -385,9 +385,9 @@ impl<D: Clone + AsRef<str>, P, POLICY: Policy> ResourceLocator<SystemdSocketServ
|
|||
(
|
||||
PathArtifact::from(format!("/var/tmp/{}-{}.socket", user_name.0, resource.1)),
|
||||
PathArtifact::from(service_dir_path.join(format!("{}.service", resource.1))),
|
||||
user_name.clone(),
|
||||
user_name,
|
||||
),
|
||||
(Dir(service_dir_path), Owner(user_name.0, config)),
|
||||
Dir(service_dir_path),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue