From f0f03b317864243e0fcde0674e54dfb3da847096 Mon Sep 17 00:00:00 2001 From: Bernhard B Date: Mon, 18 Jan 2021 16:37:15 +0100 Subject: [PATCH] add info message to specify "--config" when using signal-cli directly --- entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index f1e69a7..8face63 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,13 +3,16 @@ set -x set -e +export SIGNAL_CLI_CONFIG_DIR=/home/.local/share/signal-cli + # Fix permissions to ensure backward compatibility -chown 1000:1000 -R /home/.local/share/signal-cli +chown 1000:1000 -R ${SIGNAL_CLI_CONFIG_DIR} # Show warning on docker exec cat <> /root/.bashrc echo "WARNING: signal-cli-rest-api runs as signal-api (not as root!)" echo "Run 'su signal-api' before using signal-cli!" +echo "If you want to use signal-cli directly, don't forget to specify the config directory. e.g: \"signal-cli --config ${SIGNAL_CLI_CONFIG_DIR}\"" EOF cap_prefix="-cap_"