Symlink entire autodl directory instead of just autodl.cfg
This commit is contained in:
parent
fa7b5c1139
commit
c6f1e29bc4
|
@ -25,8 +25,7 @@ RUN ln -s /config/rtorrent/rtorrent.rc ~/.rtorrent.rc && \
|
||||||
git clone --depth=1 --recursive \
|
git clone --depth=1 --recursive \
|
||||||
https://github.com/autodl-community/autodl-irssi.git ~/.irssi/scripts && \
|
https://github.com/autodl-community/autodl-irssi.git ~/.irssi/scripts && \
|
||||||
mkdir -p ~/.irssi/scripts/autorun && \
|
mkdir -p ~/.irssi/scripts/autorun && \
|
||||||
cp ~/.irssi/scripts/autodl-irssi.pl ~/.irssi/scripts/autorun && \
|
cp ~/.irssi/scripts/autodl-irssi.pl ~/.irssi/scripts/autorun
|
||||||
mkdir -p ~/.autodl
|
|
||||||
|
|
||||||
VOLUME /config /torrents
|
VOLUME /config /torrents
|
||||||
COPY start rtorrent.rc supervisord.conf autodl.cfg /
|
COPY start rtorrent.rc supervisord.conf autodl.cfg /
|
||||||
|
|
|
@ -17,8 +17,10 @@ mkdir -p /config/rutorrent/settings /config/rutorrent/torrents \
|
||||||
cp -rf $(ls -d1 /config/rutorrent/plugins/**) /opt/rutorrent/plugins/
|
cp -rf $(ls -d1 /config/rutorrent/plugins/**) /opt/rutorrent/plugins/
|
||||||
|
|
||||||
# Set up autodl-irssi
|
# Set up autodl-irssi
|
||||||
cp -n /autodl.cfg /config
|
mkdir -p /config/autodl
|
||||||
ln -s /config/autodl.cfg ~/.autodl/autodl.cfg
|
cp -n /autodl.cfg /config/autodl
|
||||||
|
rm -rf ~/.autodl
|
||||||
|
ln -fs /config/autodl/ ~/.autodl
|
||||||
|
|
||||||
# Make php-fpm run as root
|
# Make php-fpm run as root
|
||||||
# Everything is inside a docker container so this shouldn't
|
# Everything is inside a docker container so this shouldn't
|
||||||
|
|
Loading…
Reference in New Issue