freeschema 1.0.11 → 1.0.12

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.
Files changed (2) hide show
  1. package/bin/freeschema.js +13 -13
  2. package/package.json +1 -1
package/bin/freeschema.js CHANGED
@@ -156,7 +156,10 @@ function setupSuperAdmin() {
156
156
  if (!ac) return;
157
157
  const container = ac.Name || ac.ID;
158
158
 
159
- if (!waitForAccessControl(container)) return;
159
+ if (!isContainerHealthy(container)) {
160
+ console.log(' Super admin will be set on next start (access-control still starting)');
161
+ return;
162
+ }
160
163
 
161
164
  const result = spawnSync('docker', [
162
165
  'exec', container, 'curl', '-sf',
@@ -609,21 +612,18 @@ async function cmdStart() {
609
612
  console.log('\nFinalizing setup…');
610
613
  setupSuperAdmin();
611
614
 
612
- console.log('\nFreeSchema is running.');
613
- console.log(' Status: freeschema status');
614
- console.log(' Logs: freeschema logs');
615
- console.log(' Stop: freeschema stop');
616
-
617
- // Auto-setup credentials if CLIENT_SECRET is missing or placeholder
618
615
  const envAfterStart = readEnv();
619
616
  const clientSecret = envAfterStart.CLIENT_SECRET || '';
620
- const isPlaceholder = clientSecret === '' || clientSecret === 'sk_test_placeholder';
617
+ const isPlaceholder = !clientSecret || clientSecret === 'sk_test_placeholder';
618
+
619
+ console.log('\nFreeSchema is running.');
620
+ console.log(' Status: freeschema status');
621
+ console.log(' Logs: freeschema logs');
622
+ console.log(' Stop: freeschema stop');
621
623
  if (isPlaceholder) {
622
- console.log('\n─────────────────────────────────────────');
623
- console.log(' CLIENT_SECRET is not configured.');
624
- console.log(' Setting up admin credentials');
625
- console.log('─────────────────────────────────────────');
626
- await cmdSetupCredentials();
624
+ console.log('\n CLIENT_SECRET is not set yet.');
625
+ console.log(' Once services are healthy, run:');
626
+ console.log(' freeschema setup-credentials');
627
627
  }
628
628
  }
629
629
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freeschema",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "FreeSchema — self-hosted deployment CLI",
5
5
  "keywords": [
6
6
  "freeschema",