mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-01 14:50:51 +02:00
Test
This commit is contained in:
@@ -74,12 +74,12 @@ RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && /ha_entrypoint_modif.
|
|||||||
|
|
||||||
RUN chmod 777 /docker-entrypoint-initdb.d/* && \
|
RUN chmod 777 /docker-entrypoint-initdb.d/* && \
|
||||||
# Close gracefully
|
# Close gracefully
|
||||||
sed -i "2s|^|trap 'echo \"Received SIGTERM, shutting down PostgreSQL...\"; gosu postgres pg_ctl -D \"\$PGDATA\" -m fast stop; exit 0' SIGTERM\n|" /ha_entrypoint.sh
|
sed -i "1s|^|#!/usr/bin/env bashio\n|" /ha_entrypoint.sh && \
|
||||||
|
sed -i "2s|^|trap 'echo \"Received SIGTERM, shutting down PostgreSQL...\"; gosu postgres pg_ctl -D \"\$PGDATA\" -m fast stop; exit 0' SIGTERM\n|" /ha_entrypoint.sh && \
|
||||||
|
echo -e "\n# Simulate long-running process to allow signal handling\nwhile true; do\n sleep 1\ndone" >> /ha_entrypoint.sh
|
||||||
|
|
||||||
WORKDIR /config
|
WORKDIR /config
|
||||||
ENTRYPOINT [ "/usr/bin/env" ]
|
ENTRYPOINT [ "/ha_entrypoint.sh" ]
|
||||||
CMD [ "/ha_entrypoint.sh" ]
|
|
||||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
||||||
|
|
||||||
############
|
############
|
||||||
# 5 Labels #
|
# 5 Labels #
|
||||||
|
|||||||
Reference in New Issue
Block a user