feat: complete data path migration to system location
✅ Complete Data Path Migration - Updated CLI commands to use /var/lib/aitbc/data - Updated production config to use /var/lib/aitbc/data - Updated systemd services to use /var/lib/aitbc/data - Removed all hardcoded /opt/aitbc/data references - Removed all hardcoded /opt/aitbc/production/data references ✅ System Compliance - All data paths now point to /var/lib/aitbc/data - No repository data paths remaining - FHS compliant data storage - Production-ready data architecture ✅ Git Repository Clean - No dynamic data in repository - All data paths updated to system location - .gitignore prevents future tracking - Clean git history 🚀 AITBC data architecture is now fully compliant with system standards!
This commit is contained in:
@@ -50,7 +50,7 @@ def create(ctx, address: str, password_file: str, output: str, force: bool):
|
||||
pwd_path = Path(password_file)
|
||||
with open(pwd_path, "r", encoding="utf-8") as f:
|
||||
password = f.read().strip()
|
||||
out_dir = Path(output) if output else Path("/opt/aitbc/data/keystore")
|
||||
out_dir = Path(output) if output else Path("/var/lib/aitbc/data/keystore")
|
||||
out_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
ks_module = _load_keystore_script()
|
||||
@@ -59,7 +59,7 @@ def create(ctx, address: str, password_file: str, output: str, force: bool):
|
||||
|
||||
|
||||
# Helper so other commands (genesis) can reuse the same logic
|
||||
def create_keystore_via_script(address: str, password_file: str = "/opt/aitbc/data/keystore/.password", output_dir: str = "/opt/aitbc/data/keystore", force: bool = False):
|
||||
def create_keystore_via_script(address: str, password_file: str = "/var/lib/aitbc/data/keystore/.password", output_dir: str = "/var/lib/aitbc/data/keystore", force: bool = False):
|
||||
pwd = Path(password_file).read_text(encoding="utf-8").strip()
|
||||
out_dir = Path(output_dir)
|
||||
out_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
Reference in New Issue
Block a user