Commit 63220af1 authored by markus.wagner's avatar markus.wagner
Browse files

fix gdpr script

after package installation we need a config, otherwise the bundle isn't started.
parent 109c2623
......@@ -101,17 +101,7 @@ if [[ "${FEATURE_GDPR_EXPORT}" = true ]]; then
if [[ "${FEATURE_INSTALL}" = true ]]; then
echo "Installing gdpr data export packages ... "
installPackagesRetry "open-xchange-gdpr-dataexport"
fi
if [[ "${FEATURE_ENABLE}" = true ]]; then
echo "Enabling GDPR data export feature with 24/7 enabled export functionality ... "
if [ -z ${OX_FILESTORE_ID} ]; then
echo "No filestore id was specified as parameter, trying to obtain it from config directory ..."
OX_FILESTORE_ID=$(cat /opt/open-xchange/etc/20-registerfilestore.out | awk '{ print $2 }')
fi
echo "OX_FILESTORE_ID="$OX_FILESTORE_ID
if [[ -f /usr/share/doc/open-xchange-gdpr-dataexport/properties/dataexport.properties.gz ]]; then
echo "Unzipping default dataexport.properties file ..."
/bin/gunzip -fv /usr/share/doc/open-xchange-gdpr-dataexport/properties/dataexport.properties.gz
......@@ -123,10 +113,28 @@ if [[ "${FEATURE_GDPR_EXPORT}" = true ]]; then
fi
# Actual configuration of gdpr feature
setOXProperty com.openexchange.gdpr.dataexport.enabled false /opt/open-xchange/etc/dataexport.properties
setOXProperty com.openexchange.gdpr.dataexport.active false /opt/open-xchange/etc/dataexport.properties
setOXProperty com.openexchange.gdpr.dataexport.schedule "Mon-Sun 0-24" /opt/open-xchange/etc/dataexport.properties
# Touching restart required flag
touch /opt/open-xchange/etc/000-ox-restart-required
fi
if [[ "${FEATURE_ENABLE}" = true ]]; then
echo "Enabling GDPR data export feature with 24/7 enabled export functionality ... "
if [ -z ${OX_FILESTORE_ID} ]; then
echo "No filestore id was specified as parameter, trying to obtain it from config directory ..."
OX_FILESTORE_ID=$(cat /opt/open-xchange/etc/20-registerfilestore.out | awk '{ print $2 }')
fi
echo "OX_FILESTORE_ID="$OX_FILESTORE_ID
setOXProperty com.openexchange.gdpr.dataexport.fileStorageId "$OX_FILESTORE_ID" /opt/open-xchange/etc/dataexport.properties
setOXProperty com.openexchange.gdpr.dataexport.enabled true /opt/open-xchange/etc/dataexport.properties
setOXProperty com.openexchange.gdpr.dataexport.active true /opt/open-xchange/etc/dataexport.properties
setOXProperty com.openexchange.gdpr.dataexport.schedule "Mon-Sun 0-24" /opt/open-xchange/etc/dataexport.properties
# Touching restart required flag
touch /opt/open-xchange/etc/000-ox-restart-required
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment