Bon j'ai fait les modifs mais j'ai un autre problème :
Le script au lancement du container est le suivant :
#!/bin/sh
addgroup -g ${GID} torrent && adduser -h /home/torrent -s /bin/sh -G torrent -D -u ${UID} torrent
mkdir -p /data/torrents
mkdir -p /data/.watch
mkdir -p /data/.session
mkdir -p /data/Media/Movies
mkdir -p /data/Media/TV
mkdir -p /data/Media/Animes
mkdir -p /data/Media/Music
if [ ! -f "/home/torrent/.rtorrent.rc" ];then
cd /
mv .rtorrent.rc /home/torrent/.rtorrent.rc
fi
cd /
mv -v /var/www/rutorrent /var/www/torrent
if [ ! -f "/sites/rutorrent.conf" ];then
cd /
mv rutorrent.conf /sites/rutorrent.conf
if [ $WEBROOT != "/" ]; then
sed -i 's|<webroot>|'${WEBROOT}'|g' /sites/rutorrent.conf
sed -i 's|<folder>||g' /sites/rutorrent.conf
ln -s /var/www/torrent /var/www${WEBROOT}
else
sed -i 's|<webroot>|/|g' /sites/rutorrent.conf
sed -i 's|<folder>|/torrent|g' /sites/rutorrent.conf
fi
fi
chown -R torrent:torrent /data
chown -R torrent:torrent /var/www
chown -R torrent:torrent /home/torrent
chown -R torrent:torrent /var/lib/nginx
chown -R torrent:torrent /var/log/nginx
rm -f /data/.session/rtorrent.lock
/usr/bin/supervisord -c /etc/supervisord.conf
Lorsqu'il exécute les lignes suivantes :
cd /
mv -v /var/www/rutorrent /var/www/torrent
Il fait ca :
rutorrent | '/var/www/rutorrent' -> '/var/www/torrent/rutorrent'
Je comprends pas pourquoi il renomme pas le dossier /var/www/rutorrent en /var/www/torrent ?
Une idée ?
EDIT : Finalement J'ai changé la commande en :
mv -v /var/www/rutorrent/* /var/www/torrent
Ca fonctionne mais l'application rtorrent ne veut pas se lancer ...
Attaching to rutorrent, nginx
rutorrent | /usr/bin/startup: line 1: #!/bin/sh: not found
rutorrent | '/var/www/rutorrent/LICENSE.md' -> '/var/www/torrent/LICENSE.md'
rutorrent | '/var/www/rutorrent/README.md' -> '/var/www/torrent/README.md'
rutorrent | '/var/www/rutorrent/conf' -> '/var/www/torrent/conf'
rutorrent | '/var/www/rutorrent/css' -> '/var/www/torrent/css'
rutorrent | '/var/www/rutorrent/images' -> '/var/www/torrent/images'
rutorrent | '/var/www/rutorrent/index.html' -> '/var/www/torrent/index.html'
rutorrent | '/var/www/rutorrent/js' -> '/var/www/torrent/js'
rutorrent | '/var/www/rutorrent/lang' -> '/var/www/torrent/lang'
rutorrent | '/var/www/rutorrent/php' -> '/var/www/torrent/php'
rutorrent | '/var/www/rutorrent/plugins' -> '/var/www/torrent/plugins'
rutorrent | '/var/www/rutorrent/share' -> '/var/www/torrent/share'
rutorrent | 2016-04-29 19:16:26,784 CRIT Supervisor running as root (no user in config file)
rutorrent | 2016-04-29 19:16:26,785 WARN Included extra file "/etc/supervisor.d/supervisord.ini" during parsing
rutorrent | 2016-04-29 19:16:26,838 INFO RPC interface 'supervisor' initialized
rutorrent | 2016-04-29 19:16:26,839 CRIT Server 'unix_http_server' running without any HTTP authentication checking
rutorrent | 2016-04-29 19:16:26,840 INFO supervisord started with pid 29
rutorrent | 2016-04-29 19:16:27,844 INFO spawned: 'rtorrent' with pid 32
rutorrent | 2016-04-29 19:16:27,850 INFO spawned: 'nginx' with pid 33
rutorrent | 2016-04-29 19:16:27,856 INFO spawned: 'php-fpm' with pid 34
rutorrent | 2016-04-29 19:16:28,068 INFO exited: rtorrent (exit status 255; not expected)
rutorrent | 2016-04-29 19:16:29,073 INFO spawned: 'rtorrent' with pid 42
rutorrent | 2016-04-29 19:16:29,074 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
rutorrent | 2016-04-29 19:16:29,075 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
EDIT 2 : Si quelqu'un veut essayer mon image :
https://github.com/MisterCyp/dockerfiles/tree/master/rutorrent