Updated setup.py

This commit is contained in:
Jeroen Oudshoorn
2023-12-08 14:33:54 +01:00
parent c340de2343
commit 2de631c409

View File

@ -15,7 +15,7 @@ log = logging.getLogger(__name__)
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('/root/') and os.path.exists(dest_filename):
if dest_filename.startswith('/etc/network/interfaces.d/') and dest_filename.startswith('/root/') and os.path.exists(dest_filename):
log.info(f"{dest_filename} exists, skipping ...")
return