mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-10 17:46:00 +02:00
feat(collabora): expose env options and persist config
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
## 25.04.4.2.2-5 (05-08-2025)
|
||||||
|
- Expose additional Collabora environment options
|
||||||
|
- Persist coolwsd.xml in /config and symlink original path
|
||||||
## 25.04.4.2.2-4 (05-08-2025)
|
## 25.04.4.2.2-4 (05-08-2025)
|
||||||
- Minor bugs fixed
|
- Minor bugs fixed
|
||||||
## 25.04.4.2.2-3 (05-08-2025)
|
## 25.04.4.2.2-3 (05-08-2025)
|
||||||
|
|||||||
@@ -30,6 +30,9 @@ Configure the add-on to allow access from your Nextcloud instance:
|
|||||||
|
|
||||||
- `domain`: Regex matching the Nextcloud host (for example `cloud\\.example\\.com`).
|
- `domain`: Regex matching the Nextcloud host (for example `cloud\\.example\\.com`).
|
||||||
- `username` and `password`: Optional credentials for the Collabora admin console.
|
- `username` and `password`: Optional credentials for the Collabora admin console.
|
||||||
|
- `aliasgroup1`: Additional allowed hostnames for WOPI connections.
|
||||||
|
- `dictionaries`: Space separated list of dictionary languages to install.
|
||||||
|
- `extra_params`: Extra parameters passed to the Collabora start script.
|
||||||
|
|
||||||
### Custom Scripts and Environment Variables
|
### Custom Scripts and Environment Variables
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,10 @@
|
|||||||
"options": {
|
"options": {
|
||||||
"domain": "",
|
"domain": "",
|
||||||
"username": "",
|
"username": "",
|
||||||
"password": ""
|
"password": "",
|
||||||
|
"aliasgroup1": "",
|
||||||
|
"dictionaries": "",
|
||||||
|
"extra_params": ""
|
||||||
},
|
},
|
||||||
"ports": {
|
"ports": {
|
||||||
"9980/tcp": 9980
|
"9980/tcp": 9980
|
||||||
@@ -30,9 +33,12 @@
|
|||||||
"domain": "str?",
|
"domain": "str?",
|
||||||
"username": "str?",
|
"username": "str?",
|
||||||
"password": "password?",
|
"password": "password?",
|
||||||
|
"aliasgroup1": "str?",
|
||||||
|
"dictionaries": "str?",
|
||||||
|
"extra_params": "str?",
|
||||||
"TZ": "str?"
|
"TZ": "str?"
|
||||||
},
|
},
|
||||||
"slug": "collabora",
|
"slug": "collabora",
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "25.04.4.2.2-4"
|
"version": "25.04.4.2.2-5"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,5 +17,33 @@ if bashio::config.has_value 'password'; then
|
|||||||
export password
|
export password
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if bashio::config.has_value 'aliasgroup1'; then
|
||||||
|
aliasgroup1="$(bashio::config 'aliasgroup1')"
|
||||||
|
export aliasgroup1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if bashio::config.has_value 'dictionaries'; then
|
||||||
|
dictionaries="$(bashio::config 'dictionaries')"
|
||||||
|
export dictionaries
|
||||||
|
fi
|
||||||
|
|
||||||
|
if bashio::config.has_value 'extra_params'; then
|
||||||
|
extra_params="$(bashio::config 'extra_params')"
|
||||||
|
export extra_params
|
||||||
|
fi
|
||||||
|
|
||||||
|
COOL_CONFIG="/etc/coolwsd/coolwsd.xml"
|
||||||
|
CONFIG_DEST="/config/coolwsd.xml"
|
||||||
|
|
||||||
|
mkdir -p /config
|
||||||
|
if [ ! -e "${CONFIG_DEST}" ]; then
|
||||||
|
mv "${COOL_CONFIG}" "${CONFIG_DEST}"
|
||||||
|
chown root:root "${CONFIG_DEST}"
|
||||||
|
chmod 644 "${CONFIG_DEST}"
|
||||||
|
else
|
||||||
|
rm -f "${COOL_CONFIG}"
|
||||||
|
fi
|
||||||
|
ln -sf "${CONFIG_DEST}" "${COOL_CONFIG}"
|
||||||
|
|
||||||
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