Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-10-13 09:09:34 +02:00
parent 73e22121a9
commit 451c14dae9
4 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,8 @@ import re
def install_file(source_filename, dest_filename):
# do not overwrite network configuration if it exists already
# https://github.com/evilsocket/pwnagotchi/issues/483
if dest_filename.startswith('/etc/network/interfaces.d/') and os.path.exists(dest_filename):
if (dest_filename.startswith('/etc/network/interfaces.d/') or dest_filename.startswith('/root/')
and os.path.exists(dest_filename)):
print("%s exists, skipping ..." % dest_filename)
return