more stuff
This commit is contained in:
42
init_config.py
Normal file
42
init_config.py
Normal file
@@ -0,0 +1,42 @@
|
||||
#!/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()
|
||||
Reference in New Issue
Block a user