@auth-craft/aws-cf-stack 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/create-admin.sh +3 -1
- package/package.json +1 -1
package/lib/create-admin.sh
CHANGED
|
@@ -47,10 +47,12 @@ create_admin() {
|
|
|
47
47
|
|
|
48
48
|
echo "$output"
|
|
49
49
|
|
|
50
|
+
# Match the exact error CODE, not a loose substring: EXISTENCE_CHECK_FAILED's message
|
|
51
|
+
# also contains "already exists" and must NOT be mistaken for success.
|
|
50
52
|
if [[ $status -eq 0 ]]; then
|
|
51
53
|
success "Super admin created"
|
|
52
54
|
SUPER_ADMIN_STATUS="created"
|
|
53
|
-
elif echo "$output" | grep -
|
|
55
|
+
elif echo "$output" | grep -qE '\[SUPER_ADMIN_EXISTS\]|SUPER_ADMIN_EXISTS'; then
|
|
54
56
|
info "Super admin already exists (no action needed)"
|
|
55
57
|
SUPER_ADMIN_STATUS="exists"
|
|
56
58
|
else
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auth-craft/aws-cf-stack",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Self-contained, versioned distribution of the Auth Craft AWS (DynamoDB + Lambda) + Cloudflare gateway stack. Bundles prebuilt Lambda/worker artifacts + CDK app so consumers deploy without cloning auth-craft.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|