Minor change to entrypoint to fix a problem setting a new password
This commit is contained in:
parent
31d9a027bb
commit
e3c9d87e61
@ -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)"
|
USER_PASSWD="$(tr -dc A-Za-z0-9 < /dev/urandom | head -c 20; echo)"
|
||||||
fi
|
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
|
fi
|
||||||
|
|
||||||
/usr/bin/code-server --bind-addr 0.0.0.0:8080 .
|
/usr/bin/code-server --bind-addr 0.0.0.0:8080 .
|
Loading…
Reference in New Issue
Block a user