collabora: update systemplate network files

This commit is contained in:
Alexandre
2025-08-06 07:47:58 +02:00
parent 0a6d806f2e
commit 0af79967fd

View File

@@ -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)"