podman-jitsi : add checks

This commit is contained in:
Gitouche 2021-06-06 14:17:26 +02:00
parent 8fc197d88b
commit 9ff5469788
2 changed files with 6 additions and 1 deletions

View File

@ -8,7 +8,7 @@ ensure_pwd_is_scriptdir
ensure_not_root
if [[ -d ${confvolume} ]]; then
echo Error : conf volume already exists. Please remove it first (prune?).
echo Error : conf volume ${confvolume} already exists. Please remove it first (prune?).
exit 1
fi

View File

@ -7,6 +7,11 @@ source ${ABSDIR}/vars.sh
ensure_pwd_is_scriptdir
ensure_not_root
if [[ ! -d ${confvolume} ]]; then
echo Error : conf volume ${confvolume} does not exists. Consider running 05_freshinstall.sh if this is the first install.
exit 1
fi
curl -s -- "https://codeload.github.com/jitsi/docker-jitsi-meet/tar.gz/refs/tags/${version}" | tar xzv --strip-components 1 docker-jitsi-meet-${version}/docker-compose.yml docker-jitsi-meet-${version}/env.example docker-jitsi-meet-${version}/gen-passwords.sh
cp env.example .env
./gen-passwords.sh