fixed bug
Some checks failed
check / markdownlint (push) Has been cancelled
check / spellchecker (push) Has been cancelled

This commit is contained in:
Yajbir Singh
2025-12-05 22:06:15 +05:30
parent d1e4c26677
commit 015c89abfe

View File

@@ -323,6 +323,32 @@ if [ "${PLUGINS_ENABLED}" = "true" ]; then
echo "Plugins installed."
fi
# Configure ds-example if enabled
if [ "${DS_EXAMPLE}" = "true" ]; then
echo "Enabling test example service..."
cat > /etc/supervisor/conf.d/ds-example.conf <<EOF
[program:ds-example]
command=/var/www/onlyoffice/documentserver-example/example
directory=/var/www/onlyoffice/documentserver-example
user=ds
autostart=true
autorestart=true
startsecs=5
stopwaitsecs=10
killasgroup=true
stopasgroup=true
stdout_logfile=/var/log/${COMPANY_NAME}/documentserver-example/out.log
stderr_logfile=/var/log/${COMPANY_NAME}/documentserver-example/err.log
stdout_logfile_maxbytes=10MB
stderr_logfile_maxbytes=10MB
environment=NODE_ENV="production-linux",NODE_CONFIG_DIR="/var/www/onlyoffice/documentserver-example/config"
EOF
# Create log directory for example
mkdir -p /var/log/${COMPANY_NAME}/documentserver-example
chown -R ds:ds /var/log/${COMPANY_NAME}/documentserver-example
fi
# Start supervisor (manages DocService, Converter, etc.)
echo "Starting Supervisor..."
service supervisor start