mirror of
https://github.com/tiredofit/docker-collabora-online.git
synced 2024-05-17 21:46:34 +02:00
Add 'Home Mode' feature
This commit is contained in:
parent
a6f1779011
commit
01862877e3
|
@ -158,7 +158,6 @@ RUN set -x && \
|
|||
--with-vendor="tiredofit@github" \
|
||||
${COOL_CONFIGURE_ARGS} \
|
||||
&& \
|
||||
#( scripts/locorestrings.py /usr/src/collabora-online /usr/src/libreoffice-core/translations ) && \
|
||||
make -j$(nproc) && \
|
||||
mkdir -p /opt/cool && \
|
||||
chown -R cool /opt/cool && \
|
||||
|
|
|
@ -139,6 +139,7 @@ Be sure to view the following repositories to understand all the customizable op
|
|||
| `ENABLE_MACROS` | Enable Macros | `FALSE` |
|
||||
| `MACRO_SECURITY_LEVEL` | Macro Security Level `1` Medium `0` Low | `1` |
|
||||
| `ENABLE_METRICS_UNAUTHENTICATED` | Enable Unauthenticated Metrics | `FALSE` |
|
||||
| `ENABLE_HOME_MODE` | Enable more features with home mode | `FALSE` |
|
||||
|
||||
|
||||
#### Administration
|
||||
|
|
|
@ -18,6 +18,7 @@ ENABLE_CONFIG_RELOAD=${ENABLE_CONFIG_RELOAD:-"TRUE"}
|
|||
ENABLE_DOCUMENT_STATISTICS=${ENABLE_DOCUMENT_STATISTICS:-"FALSE"}
|
||||
ENABLE_EXPERIMENTAL_FEATURES=${ENABLE_EXPERIMENTAL_FEATURES:-"false"}
|
||||
ENABLE_FILES_QUARANTINE=${ENABLE_FILES_QUARANTINE:-"FALSE"}
|
||||
ENABLE_HOME_MODE=${ENABLE_HOME_MODE:-"FALSE"}
|
||||
ENABLE_LANGUAGE_TOOL=${ENABLE_LANGUAGE_TOOL:-"FALSE"}
|
||||
ENABLE_MACROS=${ENABLE_MACROS:-"FALSE"}
|
||||
ENABLE_METRICS_UNAUTHENTICATED=${ENABLE_METRICS_UNAUTHENTICATED:-"FALSE"}
|
||||
|
|
|
@ -205,6 +205,7 @@ if [ "${SETUP_TYPE,,}" = "auto" ]; then
|
|||
sed -i -e "s|<expiry_min \(.*\)>.*<\/expiry_min>|<expiry_min \1>${FILES_QUARANTINE_EXPIRY}<\/expiry_min>|" /etc/coolwsd/coolwsd.xml
|
||||
sed -i -e "s|<path desc=\"Path to directory\(.*\)>.*<\/path>|<path desc=\"Path to directory\1>${FILES_QUARANTINE_PATH}<\/path>|" /etc/coolwsd/coolwsd.xml
|
||||
sed -i -e "s|<ver_suffix \(.*\)>.*<\/ver_suffix>|<ver_suffix \1>${VERSION_SUFFIX}<\/ver_suffix>|" /etc/coolwsd/coolwsd.xml
|
||||
sed -i -e "s|<enable desc=\"Enable more configuration options for home users\(.*\)>.*<\/enable>|<enable desc=\"Enable more configuration options for home users\1>${ENABLE_HOME_MODE}<\/enable>|g" /etc/coolwsd.coolwsd.xml
|
||||
|
||||
if var_false "${ENABLE_TLS}" ; then
|
||||
sed -i -E "s|<enable type=\"bool\" desc=\"Controls(.*)>.*<\/enable>|<enable type=\"bool\" desc=\"Controls\1>false<\/enable>|" /etc/coolwsd/coolwsd.xml
|
||||
|
|
Loading…
Reference in a new issue