Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
QA
ox-installer
Commits
63220af1
Commit
63220af1
authored
Jun 22, 2021
by
markus.wagner
Browse files
fix gdpr script
after package installation we need a config, otherwise the bundle isn't started.
parent
109c2623
Changes
1
Hide whitespace changes
Inline
Side-by-side
features/gdpr-data-export.sh
View file @
63220af1
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment