add mytorrent cat to torrentcomplete
fix scp command
This commit is contained in:
1 parent
f65e51509a
commit
e55b6ab2f2
1 file changed
+2
-2
@@ -73,7 +73,7 @@ TORRENT_NAME="$1"
|
|||||||
ROOT_PATH="$2"
|
ROOT_PATH="$2"
|
||||||
CATEGORY="$3"
|
CATEGORY="$3"
|
||||||
|
|
||||||
if [[ "$CATEGORY" != *arr* ]]; then
|
if [[ "$CATEGORY" != "*arr*" ]] || [[ "$CATEGORY" != "mytorrents"]]; then
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Start
|
# Start
|
||||||
###############################################################################
|
###############################################################################
|
||||||
@@ -155,7 +155,7 @@ if [[ "$CATEGORY" != *arr* ]]; then
|
|||||||
lucas@mediahost "mkdir -p \"/torrent/qbittorrent/mediahost/$remote_dir\""
|
lucas@mediahost "mkdir -p \"/torrent/qbittorrent/mediahost/$remote_dir\""
|
||||||
SSH_STATUS=$?
|
SSH_STATUS=$?
|
||||||
scp -i /config/.ssh/id_ed25519 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
|
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=$?
|
SCP_STATUS=$?
|
||||||
|
|
||||||
echo "scp exit status: $SCP_STATUS"
|
echo "scp exit status: $SCP_STATUS"
|
||||||
|
|||||||
Reference in new issue
Block a user