mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-09-01 06:38:12 +00:00
11 lines
306 B
Plaintext
11 lines
306 B
Plaintext
#!/command/with-contenv sh
|
|
# File: /etc/s6-overlay/s6-rc.d/signal-json-rpc/run
|
|
|
|
if [ "$MODE" != "json-rpc" ] && [ "$MODE" != "json-rpc-native" ]; then
|
|
echo "Running as mode: $MODE - skipping json-rpc setup"
|
|
sleep infinity # do nothing, but keep service running
|
|
exit 0
|
|
fi
|
|
|
|
exec jsonrpc2-helper
|