add scp command check to torrent_complete script

This commit is contained in:
lucas committed 2026-10-01 14:07:29 +00:00
1 parent 7bcddd9073
commit d29489f498
1 file changed
+19
+19
View File
@@ -87,6 +87,25 @@ if [[ "$CATEGORY" != *arr* ]]; then
echo "Category: $CATEGORY"
echo "=================================================="
###############################################################################
# Check for scp command
###############################################################################
if ! command -v scp >/dev/null 2>&1; then
echo "Install scp"
sed -i 's|http://|https://|g' /etc/apk/repositories
for i in {1..12}; do
if apk add --no-cache openssh-client; then
break
fi
echo "Retry $i/12"
sleep 5
done
fi
###############################################################################
# Send torrent name to MQTT script
###############################################################################