Skip to content

Commit 931bc02

Browse files
committed
fix fedora 30 date params error
1 parent eeb20ec commit 931bc02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tracker-add-auto-router.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ for id in $ids ; do
3838
add_date="$(transmission-remote "$host" --auth="$auth" --torrent "$id" --info| grep '^ Date added: ' |cut -c 21-)"
3939
add_date_t="$(date -d "$add_date" "+%Y-%m-%d %H:%M")"
4040
dater="$(date "+%Y-%m-%d %H:%M")"
41-
dateo="$(date -D '%s' -d "$(( `date +%s`+1*60 ))" "+%Y-%m-%d %H:%M")"
41+
dateo="$(date -d "@$(( `date +%s`+1*60 ))" "+%Y-%m-%d %H:%M")"
4242

4343
if [ ! -f "/tmp/TTAA.$id.lock" ]; then
4444
if [[ "( "$(add_date_t)" == "$(dater)" || "$(add_date_t)" == "$(dateo)" )" ]]; then

transmission-tracker-add.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ CPUSchedulingPolicy=idle
1515
Nice=19
1616

1717
[Install]
18-
WantedBy=multi-user.target
18+
WantedBy=transmission-daemon.service

0 commit comments

Comments
 (0)