mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-07 08:05:57 +02:00
Merge pull request #2009 from alexbelgium/codex/fix-read-only-systemplate-directory-issue
collabora: update systemplate network files
This commit is contained in:
@@ -45,5 +45,14 @@ else
|
|||||||
fi
|
fi
|
||||||
ln -sf "${CONFIG_DEST}" "${COOL_CONFIG}"
|
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
|
||||||
|
chown 1001 /opt/cool/systemplate
|
||||||
|
chmod -R 755 /opt/cool/systemplate
|
||||||
|
|
||||||
bashio::log.info "Starting Collabora Online..."
|
bashio::log.info "Starting Collabora Online..."
|
||||||
su -s /bin/bash -c "/start-collabora-online.sh" "$(getent passwd 1001 | cut -d: -f1)"
|
su -s /bin/bash -c "/start-collabora-online.sh" "$(getent passwd 1001 | cut -d: -f1)"
|
||||||
|
|||||||
Reference in New Issue
Block a user