2
0
Fork 0

sh.zio.pod-systemd: fix directory for user services

main
Astra 2023-09-04 17:15:35 +01:00
parent 966d996fb3
commit 0eef5c3580
1 changed files with 1 additions and 1 deletions

View File

@ -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"