mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2026-01-04 07:24:22 +01:00
Merge pull request #474 from kleptog/java-opts-in-json-rpc
Pass JAVA_OPTS through to signal-cli in json-rpc mode
This commit is contained in:
@@ -25,6 +25,9 @@ caps="$cap_prefix$(seq -s ",$cap_prefix" 0 $(cat /proc/sys/kernel/cap_last_cap))
|
||||
if [ "$MODE" = "json-rpc" ]
|
||||
then
|
||||
/usr/bin/jsonrpc2-helper
|
||||
if [ -n "$JAVA_OPTS" ] ; then
|
||||
echo "export JAVA_OPTS='$JAVA_OPTS'" >> /etc/default/supervisor
|
||||
fi
|
||||
service supervisor start
|
||||
supervisorctl start all
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user