fix: update setup_production.py to use root instead of aitbc user
All checks were successful
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s

- Change chown from aitbc:aitbc to root:root for keystore directory
- Consistent with systemd service configuration (services run as root)
- Removes dependency on aitbc system user
This commit is contained in:
aitbc
2026-04-24 11:53:49 +02:00
parent b2fa1099c2
commit 65eabea9e4

View File

@@ -39,7 +39,7 @@ def main():
# 1. Keystore directory and password # 1. Keystore directory and password
run(f"mkdir -p {KEYS_DIR}") run(f"mkdir -p {KEYS_DIR}")
run(f"chown -R aitbc:aitbc {KEYS_DIR}") run(f"chown -R root:root {KEYS_DIR}")
# SECURITY FIX: Use environment variable instead of hardcoded password # SECURITY FIX: Use environment variable instead of hardcoded password
if not PASSWORD_FILE.exists(): if not PASSWORD_FILE.exists():