diff --git a/entrypoint.sh b/entrypoint.sh index cc6b4da..a596994 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,5 +6,11 @@ set -e # Fix permissions to ensure backward compatibility chown 1000:1000 -R /home/.local/share/signal-cli -# Start API +# 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!" +EOF + +# Start API as signal-api user exec su -s /bin/sh -c "exec signal-cli-rest-api" signal-api