We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e352af3 commit 57ffcc2Copy full SHA for 57ffcc2
src/socks-proxy/entrypoint.sh
@@ -7,7 +7,11 @@ if [ -z "${PROXY_USERS:-}" ]; then
7
exit 1
8
fi
9
10
-useradd -M -s /usr/sbin/nologin "healthcheck"
+if id "healthcheck" &>/dev/null; then
11
+ echo "Healthcheck user already exists, resetting password"
12
+else
13
+ useradd -M -s /usr/sbin/nologin "healthcheck"
14
+fi
15
HEALTHCHECK_PASSWORD=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 32)
16
echo "healthcheck:${HEALTHCHECK_PASSWORD}" | tee /healthcreds | chpasswd
17
0 commit comments