From 94ac842bc68c24f5202282d79af86e5707f0b266 Mon Sep 17 00:00:00 2001 From: Mateusz779 Date: Thu, 13 Apr 2023 13:56:11 +0200 Subject: [PATCH] - --- app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.py b/app.py index 4dfb3ec..5b479d4 100644 --- a/app.py +++ b/app.py @@ -44,7 +44,6 @@ def create_conf(): @app.route('/api/createconf', methods=['POST']) def create_conf_post(): config_name = request.form['config_name'] - print(config_name) token_name = request.form['token_name'] key_length = request.form['key_length'] folder = utils.generate_random_string(5) @@ -66,7 +65,7 @@ def create_conf_post(): sshd_config_path = os.path.join(os.getcwd(), 'configs', "sshd_config") sendmail_path = os.path.join(os.getcwd(), 'configs', "sendmail.sh") - 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]) + 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): shutil.rmtree(folder)