Skip to content

Commit 1be5684

Browse files
committed
enable rootless start
fixes bbernhard#490
1 parent 08dc98e commit 1be5684

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

entrypoint.sh

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ set -e
55

66
[ -z "${SIGNAL_CLI_CONFIG_DIR}" ] && echo "SIGNAL_CLI_CONFIG_DIR environmental variable needs to be set! Aborting!" && exit 1;
77

8+
["${UID}" = "${SIGNAL_CLI_UID}" && "${GID}" = "${SIGNAL_CLI_GID}"] &&\
9+
echo "UID and GID are already correct. Trying to start Signal Api" &&\
10+
signal-cli-rest-api -signal-cli-config=${SIGNAL_CLI_CONFIG_DIR};
11+
812
usermod -u ${SIGNAL_CLI_UID} signal-api
913
groupmod -g ${SIGNAL_CLI_GID} signal-api
1014

0 commit comments

Comments
 (0)