vpnmanager/manager/apps.py

17 lines
377 B
Python
Raw Normal View History

2018-11-25 15:05:26 +00:00
from django.apps import AppConfig
import glob
import os
2018-11-25 15:05:26 +00:00
class ManagerConfig(AppConfig):
name = 'manager'
2019-04-21 07:49:53 +00:00
verbose_name = 'Remote VR Management'
2019-01-18 12:50:41 +00:00
def ready(self):
from .logger import logger
for device in glob.glob("/opt/vpnmanager/imagebuilder/*"):
2019-04-21 07:49:53 +00:00
if glob.glob(device + "/.kumilock"):
os.remove(device + "/.kumilock")