Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user scope for UnitInstaller #20

Open
icanhazstring opened this issue Mar 5, 2018 · 0 comments
Open

Add user scope for UnitInstaller #20

icanhazstring opened this issue Mar 5, 2018 · 0 comments
Assignees
Milestone

Comments

@icanhazstring
Copy link
Owner

icanhazstring commented Mar 5, 2018

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

@icanhazstring icanhazstring added this to the v1.0 milestone Mar 5, 2018
icanhazstring added a commit that referenced this issue Jul 19, 2018
Add listing for all units
@icanhazstring icanhazstring self-assigned this Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant