17 lines
382 B
Python
17 lines
382 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")
|
|
except:
|
|
pass
|