podman-jitsi : light improvements

This commit is contained in:
Gitouche 2021-06-04 13:22:38 +02:00
parent e6c02956d2
commit 3c7ab1546c
2 changed files with 19 additions and 6 deletions

View file

@ -1,10 +1,18 @@
#!/usr/bin/env bash #!/usr/bin/env bash
ABSDIR="$( dirname "$(readlink -f -- "$0")" )"
source ${ABSDIR}/../functions.sh
source ${ABSDIR}/vars.sh
ensure_pwd_is_scriptdir
ensure_not_root
ensure_pod_exists ${pod_name}
ensure_systemd_as_user_dir_exists
# pod must be running and not managed by systemd # pod must be running and not managed by systemd
podman generate systemd --files --name ${pod_name}
mkdir -p ~/.config/systemd/user/
podman generate systemd --files --name podman-jitsi
cp *.service ~/.config/systemd/user/ cp *.service ~/.config/systemd/user/
podman pod stop podman-jitsi podman pod stop ${pod_name}
systemctl --user --now enable pod-podman-jitsi.service systemctl --user --now enable ${service_name}

5
podman-jitsi/vars.sh Normal file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
pod_name='podman-jitsi'
service_name="pod-${container_name}.service"
version='stable-5870'