2018-11-25 15:05:26 +00:00
|
|
|
from django.apps import AppConfig
|
|
|
|
|
2019-02-09 17:00:08 +00:00
|
|
|
import glob
|
|
|
|
import os
|
|
|
|
|
2018-11-25 15:05:26 +00:00
|
|
|
class ManagerConfig(AppConfig):
|
|
|
|
name = 'manager'
|
2018-12-28 10:28:44 +00:00
|
|
|
verbose_name = 'VPN360 Management'
|
2019-01-18 12:50:41 +00:00
|
|
|
|
|
|
|
def ready(self):
|
|
|
|
from .logger import logger
|
2019-02-09 17:00:08 +00:00
|
|
|
|
|
|
|
for device in glob.glob("/opt/vpnmanager/imagebuilder/*"):
|
|
|
|
try:
|
|
|
|
os.remove(device + "/.kumilock")
|
|
|
|
except:
|
|
|
|
pass
|