We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d19e22c commit 5d8e7aaCopy full SHA for 5d8e7aa
1 file changed
installer.py
@@ -87,10 +87,14 @@ def install_ovnode():
87
lines = []
88
with open(".env", "r") as f:
89
for line in f:
90
+ replaced = False
91
for key, value in replacements.items():
- if line.startswith(f"{key}="):
92
- line = f"{key}={value}\n"
93
- lines.append(line)
+ if line.startswith(f"{key}"):
+ lines.append(f"{key}={value}\n")
94
+ replaced = True
95
+ break
96
+ if not replaced:
97
+ lines.append(line)
98
99
with open(".env", "w") as f:
100
f.writelines(lines)
@@ -200,6 +204,8 @@ def uninstall_ovnode():
200
204
bash.expect(pexpect.EOF, timeout=60)
201
205
bash.close()
202
206
207
+ pexpect.run("rm -rf /etc/openvpn")
208
+
203
209
print(
210
Fore.GREEN
211
+ "OV-Node uninstallation completed successfully!"
0 commit comments