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 \ | ||||
|     https://github.com/autodl-community/autodl-irssi.git ~/.irssi/scripts && \ | ||||
|     mkdir -p ~/.irssi/scripts/autorun && \ | ||||
|     cp ~/.irssi/scripts/autodl-irssi.pl ~/.irssi/scripts/autorun && \ | ||||
|     mkdir -p ~/.autodl | ||||
|     cp ~/.irssi/scripts/autodl-irssi.pl ~/.irssi/scripts/autorun | ||||
| 
 | ||||
| VOLUME /config /torrents | ||||
| 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/ | ||||
| 
 | ||||
| # Set up autodl-irssi | ||||
| cp -n /autodl.cfg /config | ||||
| ln -s /config/autodl.cfg ~/.autodl/autodl.cfg | ||||
| mkdir -p /config/autodl | ||||
| cp -n /autodl.cfg /config/autodl | ||||
| rm -rf ~/.autodl | ||||
| ln -fs /config/autodl/ ~/.autodl | ||||
| 
 | ||||
| # Make php-fpm run as root | ||||
| # Everything is inside a docker container so this shouldn't | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue