03-oct: migracion juanjo - rutas dinamicas (.py/.ps1/.ts) + changelog (apps, OmniRoute 3.8.51, UFW 5001)
This commit is contained in:
@@ -23,7 +23,7 @@ if sys.platform == 'win32':
|
||||
sys.stderr = codecs.getwriter('utf-8')(sys.stderr.buffer, 'strict')
|
||||
|
||||
# Cargar variables de entorno locales (.env de biblioteca_negocio_prolongo)
|
||||
dotenv_path = r"C:\Users\juanm\Documents\GitHub\biblioteca_negocio_prolongo\.env"
|
||||
dotenv_path = os.path.expanduser("~/Documents/GitHub/biblioteca_negocio_prolongo/.env")
|
||||
load_dotenv(dotenv_path)
|
||||
|
||||
def cerrar_ventanas():
|
||||
@@ -101,7 +101,7 @@ p100.turnOff()"""
|
||||
|
||||
# Comando SSH en dos saltos: local -> VPS -> RPi
|
||||
cmd = [
|
||||
"ssh", "-i", r"C:\Users\juanm\Documents\GitHub\contabo",
|
||||
"ssh", "-i", os.path.expanduser("~/Documents/GitHub/contabo"),
|
||||
"root@185.187.169.109",
|
||||
f"ssh -i /root/.ssh/pi_deploy -p 2222 -o StrictHostKeyChecking=no pi@127.0.0.1 'python3 -c \"{tapo_script}\"'"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user