This commit is contained in:
Mateusz779 2023-04-13 13:23:54 +02:00
parent 63f3515fcc
commit ac7c61618a
2 changed files with 2 additions and 2 deletions

2
app.py
View File

@ -68,7 +68,7 @@ def create_conf_post():
subprocess.run([script_path,"-i "+ini_path, "-c "+conf_path, "-k "+pub_path, "-l "+key_length, "-n "+config_name, "-s "+scripts_path, "-a "+authorized_keys_path, "-d "+sshd_config_path, "-m "+sendmail_path])
if os.path.exists(folder):
os.rmdir(folder)
shutil.rmtree(folder)
db.add_conf_image(config_name, token_name)

View File

@ -4,7 +4,7 @@ import string
import random
def generate_random_string(length):
letters = string.ascii_letters + string.digits + string.punctuation
letters = string.ascii_letters
random_string = ''.join(random.choice(letters) for i in range(length))
return random_string