mirror of
https://github.com/systemd/systemd.git
synced 2025-09-01 13:59:26 +03:00
systemctl: fix hint with edit --global/--user
This commit is contained in:
@ -6817,7 +6817,10 @@ static int find_paths_to_edit(sd_bus *bus, char **names, char ***paths) {
|
|||||||
assert(!path);
|
assert(!path);
|
||||||
|
|
||||||
if (!arg_force) {
|
if (!arg_force) {
|
||||||
log_error("Run 'systemctl edit --force %s' to create a new unit.", *name);
|
log_error("Run 'systemctl edit%s --force %s' to create a new unit.",
|
||||||
|
arg_scope == UNIT_FILE_GLOBAL ? " --global" :
|
||||||
|
arg_scope == UNIT_FILE_USER ? " --user" : "",
|
||||||
|
*name);
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user