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