We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent78f9f43 commitf38f746Copy full SHA for f38f746
scripts/develop.sh
@@ -162,8 +162,10 @@ fatal() {
162
# Check if credentials are already set up to avoid setting up again.
163
"${CODER_DEV_SHIM}" list>/dev/null2>&1&& touch"${PROJECT_ROOT}/.coderv2/developsh-did-first-setup"
164
165
-if[!-f"${PROJECT_ROOT}/.coderv2/developsh-did-first-setup" ];then
+if!"${CODER_DEV_SHIM}" whoami>/dev/null2>&1;then
166
# Try to create the initial admin user.
167
+echo"Login required; use admin@coder.com and password '${password}'">&2
168
+
169
if"${CODER_DEV_SHIM}" login http://127.0.0.1:3000 --first-user-username=admin --first-user-email=admin@coder.com --first-user-password="${password}" --first-user-full-name="Admin User" --first-user-trial=false;then
170
# Only create this file if an admin user was successfully
171
# created, otherwise we won't retry on a later attempt.