[Update] 修改Minxs

This commit is contained in:
ibuler
2019-07-02 17:51:50 +08:00
parent 58182712a2
commit 7bf1555c67
30 changed files with 284 additions and 890 deletions

View File

@@ -77,6 +77,7 @@ def monkey_patch_settings(sender, **kwargs):
@receiver(django_ready)
def auto_generate_terminal_host_key(sender, **kwargs):
try:
print("Auto gen host key")
if Setting.objects.filter(name='TERMINAL_HOST_KEY').exists():
return
private_key, public_key = ssh_key_gen()