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
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:
@@ -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():
|
||||||
|
|||||||
Reference in New Issue
Block a user