ntfy : better install
This commit is contained in:
parent
1997c0cfdc
commit
6e192551a8
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue