refactor: standardize config path and add CLI entry point
All checks were successful
Security Scanning / security-scan (push) Successful in 1m10s
CLI Tests / test-cli (push) Successful in 1m12s
Systemd Sync / sync-systemd (push) Successful in 2s

- Move EnvironmentFile from /opt/aitbc/.env to /etc/aitbc/blockchain.env in all systemd services
- Add main() entry point function to CLI for package installation compatibility
- Update aitbc-blockchain-node.service, aitbc-blockchain-node-dev.service
- Update aitbc-blockchain-rpc.service
- Update aitbc-blockchain-sync.service, aitbc-blockchain-sync-dev.service

This aligns with Linux filesystem hierarchy standards where /etc/ is the proper
This commit is contained in:
aitbc1
2026-03-29 15:05:44 +02:00
parent 7c29011398
commit 21478681e1
7 changed files with 14 additions and 5 deletions

View File

@@ -247,5 +247,10 @@ def version(ctx):
output(f"AITBC CLI version {__version__}", ctx.obj['output_format'])
def main():
"""Main entry point for AITBC CLI"""
return cli()
if __name__ == "__main__":
cli()

4
cli/requirements.txt Normal file
View File

@@ -0,0 +1,4 @@
click>=8.0.0
requests>=2.25.0
pydantic>=2.0.0
cryptography>=3.4.0