Move static config from start script to Dockerfile
This commit is contained in:
		
							parent
							
								
									aaf37c5d9e
								
							
						
					
					
						commit
						17ef4c980d
					
				|  | @ -31,7 +31,9 @@ RUN ln -s /config/rtorrent/rtorrent.rc ~/.rtorrent.rc \ | ||||||
|         https://github.com/autodl-community/autodl-irssi.git \ |         https://github.com/autodl-community/autodl-irssi.git \ | ||||||
|         ~/.irssi/scripts \ |         ~/.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 \ | ||||||
|  |     && ln -s /config/autodl/ ~/.autodl \ | ||||||
|  |     && sed -i "s/www-data/root/g" /etc/php5/fpm/pool.d/www.conf | ||||||
| 
 | 
 | ||||||
| VOLUME /config /torrents | VOLUME /config /torrents | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -19,12 +19,5 @@ cp -rf $(ls -d1 /config/rutorrent/plugins/**) /opt/rutorrent/plugins/ | ||||||
| # Set up autodl-irssi | # Set up autodl-irssi | ||||||
| mkdir -p /config/autodl | mkdir -p /config/autodl | ||||||
| cp -n /autodl.cfg /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 |  | ||||||
| # be a security problem |  | ||||||
| sed -i "s/www-data/root/g" /etc/php5/fpm/pool.d/www.conf |  | ||||||
| 
 | 
 | ||||||
| supervisord -c /supervisord.conf | supervisord -c /supervisord.conf | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue