From 0af79967fd7f833168629f15b02e448905aa0bd5 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 6 Aug 2025 07:47:58 +0200 Subject: [PATCH] collabora: update systemplate network files --- collabora/rootfs/etc/cont-init.d/99-run.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/collabora/rootfs/etc/cont-init.d/99-run.sh b/collabora/rootfs/etc/cont-init.d/99-run.sh index 49886ef89..07bd1171d 100755 --- a/collabora/rootfs/etc/cont-init.d/99-run.sh +++ b/collabora/rootfs/etc/cont-init.d/99-run.sh @@ -45,5 +45,12 @@ else fi ln -sf "${CONFIG_DEST}" "${COOL_CONFIG}" +SYSTEMPLATE_DIR="/opt/cool/systemplate/etc" +if [ -d "${SYSTEMPLATE_DIR}" ]; then + cp /etc/hosts "${SYSTEMPLATE_DIR}/hosts" + cp /etc/hostname "${SYSTEMPLATE_DIR}/hostname" 2>/dev/null || true + cp /etc/resolv.conf "${SYSTEMPLATE_DIR}/resolv.conf" +fi + bashio::log.info "Starting Collabora Online..." su -s /bin/bash -c "/start-collabora-online.sh" "$(getent passwd 1001 | cut -d: -f1)"