diff --git a/file_manager.py b/file_manager.py index 9e7ccc8..81699e1 100644 --- a/file_manager.py +++ b/file_manager.py @@ -89,8 +89,7 @@ def append_stream_config(port, subdomain, config_file_path='/etc/nginx/sites-ava def remove_stream_config(port, subdomain, config_file_path='/etc/nginx/sites-available/servii.fr'): - pattern = (r'stream {{\s*server {{\s*listen 25565;\s*listen \[\(::\]\):' - r'25565;\s*server_name {}.servii\.fr;\s*proxy_pass 127\.0\.0\.1:{};\s*}}}\n' + pattern = (r'stream {{\s*server {{\s*listen 25565;\s*listen \[\(::\]\):25565;\s*server_name {}.servii\.fr;\s*proxy_pass 127\.0\.0\.1:{};\s*}}}\n' .format(re.escape(subdomain), port)) with open(config_file_path, 'r') as file: content = file.read()