Skip to content
This repository was archived by the owner on Jan 16, 2020. It is now read-only.

Fix path initplugins #35

Merged
merged 1 commit into from
Aug 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rootfs/home/torrent/.rtorrent.rc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ throttle.max_uploads.set = 15
encoding.add = utf8

## Scheduling
execute2 = {sh,-c,/usr/bin/php /nginx/www/html/torrent/php/initplugins.php torrent &}
execute2 = {sh,-c,/usr/bin/php /var/www/html/torrent/php/initplugins.php torrent &}
schedule2 = watch_directory,1,1,"load.start=/data/.watch/*.torrent"
schedule2 = untied_directory,5,5,"stop_untied=/data/.watch/*.torrent"
schedule2 = espace_disque_insuffisant,1,30,close_low_diskspace=500M
9 changes: 8 additions & 1 deletion rootfs/usr/local/bin/startup
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ if [ -e /filebot ]; then
fi
f_log SUC "Generate configuration done"


f_log INF "Install plowshare ..."
if [ -e /home/torrent/.config/plowshare ]; then
su-exec ${USER_NAME}:${GROUP_NAME} plowmod --update > /dev/null 2>&1
Expand All @@ -196,6 +195,14 @@ if [ "$DISABLE_PERM_DATA" == "false" ]; then
f_log SUC "Apply data permissions done"
fi

## fix path initplugins (if already have .rtorrent.rc)
grep -Eq " /nginx/" /home/torrent/.rtorrent.rc
if [ $? -eq 0 ]; then
f_log INF "Fix path initplugins on .rtorrent.rc ..."
sed -i "s# /nginx/# /var/#g" /home/torrent/.rtorrent.rc
f_log SUC "Fix path initplugins done"
fi

rm -f /data/.session/rtorrent.lock

exec su-exec ${USER_NAME}:${GROUP_NAME} $@