From ee455f009e66432e9a215db67a0b66981cce3011 Mon Sep 17 00:00:00 2001 From: Moe Date: Mon, 31 May 2021 10:51:41 -0700 Subject: [PATCH] Point node-ssh at git repo because npmjs version is broken + fix sftp always enabling even if disabled --- libs/uploaders/sftp.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/uploaders/sftp.js b/libs/uploaders/sftp.js index 6ba8eac9..f50a3f2d 100644 --- a/libs/uploaders/sftp.js +++ b/libs/uploaders/sftp.js @@ -16,6 +16,7 @@ module.exports = function(s,config,lang){ if(!s.group[e.ke].sftp && !s.group[e.ke].sftp && userDetails.sftp !== '0' && + userDetails.sftp_save === '1' && userDetails.sftp_host && userDetails.sftp_host !== ''&& userDetails.sftp_port && diff --git a/package.json b/package.json index 28a73f16..0cb8ea5b 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "mp4frag": "^0.2.0", "mysql": "^2.18.1", "node-fetch": "3.0.0-beta.9", - "node-ssh": "^11.1.1", + "node-ssh": "git+https://github.com/steelbrain/node-ssh.git", "node-telegram-bot-api": "^0.52.0", "nodemailer": "^6.4.11", "pam-diff": "github:kevinGodell/pam-diff",