From e3c9d87e618c9779e43506d75f141e7fa964aefa Mon Sep 17 00:00:00 2001 From: Bradley Bickford Date: Sat, 7 Dec 2024 14:22:54 -0500 Subject: [PATCH] Minor change to entrypoint to fix a problem setting a new password --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index a503444..58f2279 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -21,7 +21,7 @@ if [ -n "${USER_PASSWD}" ] && [ "${CURRENT_PASSWD}" != "${USER_PASSWD}" ] || [ " USER_PASSWD="$(tr -dc A-Za-z0-9 < /dev/urandom | head -c 20; echo)" fi - sed -i "s/^PASSWORD: .*$/PASSWORD: ${USER_PASSWD}/g" /home/$1/.config/code-server/config.yaml + sed -i "s/^password: .*$/password: ${USER_PASSWD}/g" /home/$1/.config/code-server/config.yaml fi /usr/bin/code-server --bind-addr 0.0.0.0:8080 . \ No newline at end of file