vpnmanager/manager/apps.py

18 lines
384 B
Python

from django.apps import AppConfig
import glob
import os
class ManagerConfig(AppConfig):
name = 'manager'
verbose_name = 'VPN360 Management'
def ready(self):
from .logger import logger
for device in glob.glob("/opt/vpnmanager/imagebuilder/*"):
try:
os.remove(device + "/.kumilock")
finally:
pass