diff --git a/config.py b/config.py index 1518f52..7a285d2 100644 --- a/config.py +++ b/config.py @@ -11,10 +11,10 @@ titles_path = '/session_server_config/titles.json' # nginx config -server_domain = 'a1.test.sess.graff.tech' -session_server_ip = "192.168.1.115" +server_domain = 'a2.sess.graff.tech' +session_server_ip = "192.168.0.10" server_postfix = "s1" session_server_port = 3005 session_begin_port = 14000 -session_limit = 7 \ No newline at end of file +session_limit = 4 \ No newline at end of file diff --git a/headers/powershell.py b/headers/powershell.py new file mode 100644 index 0000000..c5cb49e --- /dev/null +++ b/headers/powershell.py @@ -0,0 +1,9 @@ +import subprocess + +def run_command(cmd, directory): + command = subprocess.run(["powershell", "-Command", cmd], cwd=directory, shell=True, check=True) + return command + +def run_command_no_dir(cmd): + command = subprocess.run(["powershell", "-Command", cmd], shell=True, check=True) + return command \ No newline at end of file diff --git a/start_install_package.py b/start_install_package.py index 334970c..355f26f 100644 --- a/start_install_package.py +++ b/start_install_package.py @@ -1,5 +1,5 @@ import config -import lib.powershell as powershell +import headers.powershell as powershell import shutil import os diff --git a/uninstall_package.py b/uninstall_package.py index 14f3473..f630576 100644 --- a/uninstall_package.py +++ b/uninstall_package.py @@ -1,5 +1,5 @@ import config -import lib.powershell as powershell +import headers.powershell as powershell import os deploy_path = config.deploy_path