mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-05-25 14:34:22 +00:00
add info message to specify "--config" when using signal-cli directly
This commit is contained in:
parent
4d5f7bed7d
commit
f0f03b3178
@ -3,13 +3,16 @@
|
|||||||
set -x
|
set -x
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
export SIGNAL_CLI_CONFIG_DIR=/home/.local/share/signal-cli
|
||||||
|
|
||||||
# Fix permissions to ensure backward compatibility
|
# 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
|
# Show warning on docker exec
|
||||||
cat <<EOF >> /root/.bashrc
|
cat <<EOF >> /root/.bashrc
|
||||||
echo "WARNING: signal-cli-rest-api runs as signal-api (not as root!)"
|
echo "WARNING: signal-cli-rest-api runs as signal-api (not as root!)"
|
||||||
echo "Run 'su signal-api' before using signal-cli!"
|
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
|
EOF
|
||||||
|
|
||||||
cap_prefix="-cap_"
|
cap_prefix="-cap_"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user