mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-25 22:16:29 +01:00
Avoid repeating x11vnc and Xvfb starts
https://github.com/alexbelgium/hassio-addons/issues/747#issuecomment-1603242249
This commit is contained in:
@@ -71,6 +71,8 @@ RUN \
|
||||
sed -i "s|/fgc|/data|g" /usr/local/bin/docker-entrypoint.sh && \
|
||||
# Run scripts only once
|
||||
sed -i "1a if [ -f /done ]; then exit 0; fi && touch /done" /entrypoint.sh && \
|
||||
sed -i "s=Xvfb=[[ \"\$(ps aux | grep \"Xvfb\" | grep -v grep)\" ]] || x11vnc=g" /usr/local/bin/docker-entrypoint.sh && \
|
||||
sed -i "s=x11vnc=[[ \"\$(ps aux | grep \"x11vnc\" | grep -v grep)\" ]] || x11vnc=g" /usr/local/bin/docker-entrypoint.sh && \
|
||||
# Allow entrypoint
|
||||
chmod 777 /entrypoint.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user