bug gix
This commit is contained in:
parent
28d1efaebd
commit
b2d5bc92a3
@ -39,8 +39,6 @@ class OManager:
|
||||
folder_path = os.path.join(self.base_folder, f"session{self.new_idx}")
|
||||
if not os.path.isdir(folder_path):
|
||||
os.makedirs(folder_path)
|
||||
if not name:
|
||||
name = f"openvpn-{self.new_idx}"
|
||||
os.system(f"groupadd vpn{self.new_idx}")
|
||||
env_config = {
|
||||
"folder_path": folder_path,
|
||||
@ -58,6 +56,8 @@ class OManager:
|
||||
return op
|
||||
|
||||
def new_op_old(self, cfg_fp, name=None, additional_cfg={}):
|
||||
if not name:
|
||||
name = f"openvpn-{self.new_idx}"
|
||||
ovpn_config = {
|
||||
"cfg_fp": cfg_fp,
|
||||
"name": name,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user