add mytorrent cat to torrentcomplete

fix scp command
This commit is contained in:
lucas committed 2026-10-02 14:38:59 +02:00
1 parent f65e51509a
commit e55b6ab2f2
1 file changed
+2 -2
+2 -2
View File
@@ -73,7 +73,7 @@ TORRENT_NAME="$1"
ROOT_PATH="$2"
CATEGORY="$3"
if [[ "$CATEGORY" != *arr* ]]; then
if [[ "$CATEGORY" != "*arr*" ]] || [[ "$CATEGORY" != "mytorrents"]]; then
###############################################################################
# Start
###############################################################################
@@ -155,7 +155,7 @@ if [[ "$CATEGORY" != *arr* ]]; then
lucas@mediahost "mkdir -p \"/torrent/qbittorrent/mediahost/$remote_dir\""
SSH_STATUS=$?
scp -i /config/.ssh/id_ed25519 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
-r "$ROOT_PATH"/. lucas@mediahost:/torrent/qbittorrent/mediahost/
-r "$ROOT_PATH"/. lucas@mediahost:/torrent/qbittorrent/mediahost/$remote_dir/
SCP_STATUS=$?
echo "scp exit status: $SCP_STATUS"