Commit 07f490d0 authored by benedikt.kroening's avatar benedikt.kroening
Browse files

small cleanup

parent bd138075
......@@ -26,8 +26,6 @@ OX_MEM_PERM=256M
INSTALL_TYPE=singlenode
OX_ENV_GLOBAL_ADDRESS_BOOK
# Noreply specific settings
OX_ENV_NOREPLY_SERVER=${OX_MAIL_HOST}
OX_ENV_NOREPLY_ADDRESS=noreply@${OX_MAIL_DOMAIN}
......
......@@ -53,7 +53,6 @@ if [ ! -f ${INIT_STATE_FILE} ]; then
restartService open-xchange
sleep 10
#waitTillAppsuiteReady
waitPort localhost 8009
# setting propper filestore permissions ...
......
......@@ -67,10 +67,20 @@ set -- "${POSITIONAL[@]}" # restore positional parameters
# Restar tof ox only. Add other file for different services (e.g. do not restart everything if not necessary)
if [ -f "/opt/open-xchange/etc/000-ox-restart-required" ]; then
echo "### OX service restart is required since the file exists: /opt/open-xchange/etc/000-ox-restart-required"
if [ -f "/var/log/open-xchange/open-xchange-osgi.log" ]; then
# renaming existing osgi log which sometimes exists after initial setup
echo "### OSGI Log present after initial setup - moving it now ..."
mv /var/log/open-xchange/open-xchange-osgi.log /var/log/open-xchange/open-xchange-osgi.log.setup
sleep 5
fi
echo "### OX service restart is required since the file exists: /opt/open-xchange/etc/000-ox-restart-required"
waitPort localhost 8009
restartService open-xchange
rm -f /opt/open-xchange/etc/000-ox-restart-required
echo ""
sleep 5
waitPort localhost 8009
waitTillAppsuiteReady
fi
\ No newline at end of file
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