vpnmanager/manager/apps.py

18 lines
382 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'
verbose_name = 'VPN360 Management'
2019-01-18 12:50:41 +00:00
def ready(self):
from .logger import logger
for device in glob.glob("/opt/vpnmanager/imagebuilder/*"):
try:
os.remove(device + "/.kumilock")
except:
pass