42 lines
1.3 KiB
Python
42 lines
1.3 KiB
Python
#!/usr/bin/env python3
|
|
"""
|
|
VPNTray Configuration Initializer
|
|
|
|
This script helps set up the initial configuration directory and example customer files.
|
|
"""
|
|
|
|
import sys
|
|
from data_loader import initialize_example_customers, get_config_dir
|
|
|
|
|
|
def main():
|
|
"""Initialize VPNTray configuration with example customers."""
|
|
config_dir = get_config_dir()
|
|
|
|
print("VPNTray Configuration Initializer")
|
|
print("=" * 35)
|
|
print(f"Configuration directory: {config_dir}")
|
|
print()
|
|
|
|
try:
|
|
initialize_example_customers()
|
|
print()
|
|
print("✅ Configuration initialized successfully!")
|
|
print()
|
|
print("Next steps:")
|
|
print("1. Edit the YAML files in the config directory to match your setup")
|
|
print("2. Add more customer files as needed (one per customer)")
|
|
print("3. Start the VPN Manager: python main.py")
|
|
print()
|
|
print("YAML file format:")
|
|
print("- Each customer gets their own .yaml/.yml file")
|
|
print("- File names don't matter (use descriptive names)")
|
|
print("- See example_customer.yaml for the complete schema")
|
|
|
|
except Exception as e:
|
|
print(f"❌ Error initializing configuration: {e}")
|
|
sys.exit(1)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main() |