Pull to refresh

Comments 1

у меня используется что-то в духе

#!/bin/sh
name='bigtasty'
systemd="${HOME}/.config/systemd/user"

## <...>

podman pod start "${name}"

find "${systemd}" -follow -xdev -mindepth 1 -name "${name}-*" -type f -delete
systemctl --user daemon-reload

(
    cd "${systemd}"
    podman generate systemd \
      --files \
      --restart-policy=always \
      --pod-prefix="${name}-pod" \
      --container-prefix="${name}-container" \
    "${name}"
)
systemctl --user daemon-reload

find "${systemd}" -follow -xdev -mindepth 1 -name "${name}-*" -type f -printf '%P\0' \
| xargs -0 -r systemctl --user enable
Sign up to leave a comment.