fixed bug
This commit is contained in:
@@ -323,6 +323,32 @@ if [ "${PLUGINS_ENABLED}" = "true" ]; then
|
|||||||
echo "Plugins installed."
|
echo "Plugins installed."
|
||||||
fi
|
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.)
|
# Start supervisor (manages DocService, Converter, etc.)
|
||||||
echo "Starting Supervisor..."
|
echo "Starting Supervisor..."
|
||||||
service supervisor start
|
service supervisor start
|
||||||
|
|||||||
Reference in New Issue
Block a user