16 lines
377 B
Python
16 lines
377 B
Python
from django.apps import AppConfig
|
|
|
|
import glob
|
|
import os
|
|
|
|
|
|
class ManagerConfig(AppConfig):
|
|
name = 'manager'
|
|
verbose_name = 'Remote VR Management'
|
|
|
|
def ready(self):
|
|
from .logger import logger
|
|
|
|
for device in glob.glob("/opt/vpnmanager/imagebuilder/*"):
|
|
if glob.glob(device + "/.kumilock"):
|
|
os.remove(device + "/.kumilock")
|