Move static config from start script to Dockerfile

This commit is contained in:
Kelvin Chen 2015-11-17 16:58:22 -05:00
parent aaf37c5d9e
commit 17ef4c980d
2 changed files with 3 additions and 8 deletions

View File

@ -31,7 +31,9 @@ RUN ln -s /config/rtorrent/rtorrent.rc ~/.rtorrent.rc \
https://github.com/autodl-community/autodl-irssi.git \
~/.irssi/scripts \
&& 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

View File

@ -19,12 +19,5 @@ cp -rf $(ls -d1 /config/rutorrent/plugins/**) /opt/rutorrent/plugins/
# Set up autodl-irssi
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
# be a security problem
sed -i "s/www-data/root/g" /etc/php5/fpm/pool.d/www.conf
supervisord -c /supervisord.conf