ntfy : better install

This commit is contained in:
Gitouche 2022-11-18 11:07:52 +01:00
parent 1997c0cfdc
commit 6e192551a8
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ if ! podman image exists ${ntfy_image}:${ntfy_version}; then
fi
podman run --name ${container_name} -p ${listen_if}:${listen_port}:8080 -d ${ntfy_image}:${ntfy_version} serve --listen-http :8080 --base-url ${GARBAYE_NTFY_BASE_URL} &&
( podman logs -f ${container_name} 2>&1 & ) | grep -q 'INFO Listening on' &&
podman cp config/server.yml ${container_name}:/etc/ntfy/server.yml &&
sleep 10 &&
podman stop ${container_name} &&
echo Container ${container_name} successfully built and stopped.