Skip to content

Add user scope for UnitInstaller #20

Description

@icanhazstring

Currently the UnitInstaller does not work with user scope.
The $installPath is fix for system scope installations.

This should work similar to switching the scope to find a unit.

$systemCtl->user()->install($template); // default: ~/.config/systemd/user/
$systemCtl->system()->install($template); // default: /etc/systemd/system/

user home should be retrieved automatically.
http://php.net/manual/en/function.posix-getpwuid.php

To resolve the paths we should use the currently empty PathResolver

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions