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
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
mkdir -p ~/.config/systemd/user/
podman generate systemd --files --name podman-jitsi
podman generate systemd --files --name ${pod_name}
cp *.service ~/.config/systemd/user/
podman pod stop podman-jitsi
systemctl --user --now enable pod-podman-jitsi.service
podman pod stop ${pod_name}
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'