services-garbaye/podman-jitsi/20_enable.sh

20 lines
440 B
Bash
Raw Normal View History

2021-05-26 20:29:56 +00:00
#!/usr/bin/env bash
2021-06-04 11:22:38 +00:00
ABSDIR="$( dirname "$(readlink -f -- "$0")" )"
source ${ABSDIR}/../functions.sh
source ${ABSDIR}/vars.sh
ensure_pwd_is_scriptdir
ensure_not_root
2021-05-26 20:29:56 +00:00
2021-06-04 11:22:38 +00:00
ensure_pod_exists ${pod_name}
2021-06-04 17:36:50 +00:00
2021-06-04 11:22:38 +00:00
ensure_systemd_as_user_dir_exists
# pod must be running and not managed by systemd
podman generate systemd --files --name ${pod_name}
mv *.service ~/.config/systemd/user/
2021-05-26 20:29:56 +00:00
2021-06-04 11:22:38 +00:00
podman pod stop ${pod_name}
2021-06-04 17:36:50 +00:00
systemctl --user enable ${service_name}