sh.zio.pod-systemd: fix directory for user services
parent
966d996fb3
commit
0eef5c3580
|
@ -15,7 +15,7 @@ if [[ $(id -u) = 0 ]]; then
|
||||||
systemctl enable --now container-$service_name
|
systemctl enable --now container-$service_name
|
||||||
say primary "System service file for $service_name created, enabled and started"
|
say primary "System service file for $service_name created, enabled and started"
|
||||||
else
|
else
|
||||||
podman generate systemd -n --new $service_name > "$HOME/.local/share/systemd/container-$service_name.service"
|
podman generate systemd -n --new $service_name > "$HOME/.local/share/systemd/user/container-$service_name.service"
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
systemctl enable --user --now container-$service_name
|
systemctl enable --user --now container-$service_name
|
||||||
say primary "User service file for $service_name created, enabled and started"
|
say primary "User service file for $service_name created, enabled and started"
|
||||||
|
|
Loading…
Reference in New Issue