Mise à jour de 'scripts/install'
This commit is contained in:
@@ -16,31 +16,28 @@ if [[ ! $? -eq 0 ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Install sources
|
# Install sources
|
||||||
if [ "$debian_version" = "jessie" ]; then
|
if [ "$debian_version" = "bullseye" ]; then
|
||||||
cd /tmp
|
|
||||||
wget http://www.deb-multimedia.org/pool/main/d/deb-multimedia-keyring/deb-multimedia-keyring_2015.6.1_all.deb
|
|
||||||
sudo dpkg -i deb-multimedia-keyring_2015.6.1_all.deb
|
|
||||||
|
|
||||||
if [ -f /etc/apt/sources.list.d/rutorrent.list ]; then
|
if [ -f /etc/apt/sources.list.d/rutorrent.list ]; then
|
||||||
sudo rm /etc/apt/sources.list.d/rutorrent.list
|
sudo rm /etc/apt/sources.list.d/rutorrent.list
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo 'deb http://ftp2.fr.debian.org/debian/ jessie main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list
|
echo 'deb http://ftp2.fr.debian.org/debian/ bullseye main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list
|
||||||
echo 'deb-src http://ftp2.fr.debian.org/debian/ jessie main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list
|
echo 'deb-src http://ftp2.fr.debian.org/debian/ bullseye main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list
|
||||||
echo 'deb ftp://ftp.deb-multimedia.org jessie main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list
|
echo 'deb http://www.deb-multimedia.org bullseye main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list
|
||||||
else
|
else
|
||||||
echo 'deb http://ftp2.fr.debian.org/debian/ wheezy main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list
|
echo 'deb http://ftp2.fr.debian.org/debian/ jessy main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list
|
||||||
echo 'deb-src http://ftp2.fr.debian.org/debian/ wheezy main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list
|
echo 'deb-src http://ftp2.fr.debian.org/debian/ jessy main non-free' | sudo tee -a /etc/apt/sources.list.d/rutorrent.list
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install de dependencies
|
# Install de dependencies
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y htop automake libcppunit-dev libtool build-essential pkg-config libssl-dev libcurl4-openssl-dev libsigc++-2.0-dev libncurses5-dev screen subversion apache2-utils php5-cli php5-geoip unzip unrar rar zip ffmpeg buildtorrent mediainfo
|
apt install -y --allow-unauthenticated deb-multimedia-keyring
|
||||||
|
sudo apt-get install -y apt-transport-https gnupg2 apache2-utils automake htop build-essential curl ffmpeg gawk git libcppunit-dev libcurl4-openssl-dev libncurses5-dev libsigc++-2.0-dev libsox-fmt-all libsox-fmt-mp3 libssl-dev libtinyxml2-8 libltdl-dev libtool mediainfo mktorrent net-tools nginx php7.4 php7.4-cli php7.4-common php7.4-curl php7.4-fpm php7.4-json php7.4-mbstring php7.4-opcache php7.4-readline php7.4-xml php7.4-bcmath php-geoip pkg-config psmisc python3-venv python3-pip python-is-python2 rar screen subversion unrar unzip sox vim zip zlib1g-dev
|
||||||
|
|
||||||
# Build xmlrpc
|
# Build xmlrpc
|
||||||
cd /tmp
|
cd /tmp
|
||||||
sudo svn checkout http://svn.code.sf.net/p/xmlrpc-c/code/stable xmlrpc-c
|
git clone https://github.com/mirror/xmlrpc-c.git
|
||||||
cd xmlrpc-c/
|
cd xmlrpc-c/stable/
|
||||||
sudo ./configure
|
sudo ./configure
|
||||||
sudo make
|
sudo make
|
||||||
sudo make install
|
sudo make install
|
||||||
@@ -49,9 +46,9 @@ sudo make install
|
|||||||
cd /tmp
|
cd /tmp
|
||||||
sudo git clone https://github.com/rakshasa/libtorrent.git
|
sudo git clone https://github.com/rakshasa/libtorrent.git
|
||||||
cd libtorrent
|
cd libtorrent
|
||||||
sudo git checkout 0.13.6
|
sudo git checkout 0.13.8
|
||||||
sudo ./autogen.sh
|
sudo ./autogen.sh
|
||||||
sudo ./configure
|
sudo ./configure --disable-debug
|
||||||
sudo make
|
sudo make
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
@@ -59,9 +56,9 @@ sudo make install
|
|||||||
cd /tmp
|
cd /tmp
|
||||||
sudo git clone https://github.com/rakshasa/rtorrent.git
|
sudo git clone https://github.com/rakshasa/rtorrent.git
|
||||||
cd rtorrent
|
cd rtorrent
|
||||||
sudo git checkout 0.9.6
|
sudo git checkout 0.9.8
|
||||||
sudo ./autogen.sh
|
sudo ./autogen.sh
|
||||||
sudo ./configure --with-xmlrpc-c
|
sudo ./configure --with-xmlrpc-c --with-ncurses --disable-debug
|
||||||
sudo make
|
sudo make
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
@@ -71,23 +68,37 @@ sudo ldconfig
|
|||||||
sudo git clone https://github.com/Novik/ruTorrent.git /var/www/rutorrent
|
sudo git clone https://github.com/Novik/ruTorrent.git /var/www/rutorrent
|
||||||
|
|
||||||
# Install rutorrent plugins
|
# Install rutorrent plugins
|
||||||
|
|
||||||
|
sudo pip3 install cloudscraper
|
||||||
|
|
||||||
cd /var/www/rutorrent/plugins/
|
cd /var/www/rutorrent/plugins/
|
||||||
|
sudo git clone https://github.com/Micdu70/rutorrent-ratiocolor.git ratiocolor
|
||||||
|
|
||||||
sudo git clone https://github.com/xombiemp/rutorrentMobile.git mobile
|
|
||||||
|
|
||||||
sudo svn checkout http://svn.rutorrent.org/svn/filemanager/trunk/filemanager
|
cd /var/www/rutorrent/plugins/
|
||||||
|
wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/rutorrent-logoff/logoff-1.3.tar.gz
|
||||||
|
tar xzfv logoff-1.3.tar.gz
|
||||||
|
rm logoff-1.3.tar.gz
|
||||||
|
|
||||||
|
cd /var/www/rutorrent/plugins/
|
||||||
|
git clone https://github.com/Micdu70/geoip2-rutorrent.git geoip2
|
||||||
|
|
||||||
|
cd /var/www/rutorrent/plugins/
|
||||||
|
wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/rutorrent-pausewebui/pausewebui.1.2.zip
|
||||||
|
unzip pausewebui.1.2.zip
|
||||||
|
rm -R __MACOSX pausewebui.1.2.zip
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
git clone https://github.com/Micdu70/rutorrent-thirdparty-plugins.git
|
||||||
|
cd rutorrent-thirdparty-plugins
|
||||||
|
mv filemanager /var/www/rutorrent/plugins/filemanager
|
||||||
|
|
||||||
|
chown -R www-data:www-data /var/www/rutorrent
|
||||||
|
|
||||||
|
|
||||||
# Configure plugins
|
# Configure plugins
|
||||||
cd $current_dir
|
cd $current_dir
|
||||||
|
|
||||||
sudo rm /var/www/rutorrent/plugins/create/conf.php
|
|
||||||
sudo cp ../sources/plugins/create/conf.php /var/www/rutorrent/plugins/create/conf.php
|
|
||||||
|
|
||||||
sudo rm /var/www/rutorrent/plugins/filemanager/conf.php
|
|
||||||
sudo cp ../sources/plugins/filemanager/conf.php /var/www/rutorrent/plugins/filemanager/conf.php
|
|
||||||
|
|
||||||
sudo rm /var/www/rutorrent/plugins/mobile/init.js
|
|
||||||
sudo cp ../sources/plugins/mobile/init.js /var/www/rutorrent/plugins/mobile/init.js
|
|
||||||
|
|
||||||
# Configure nginx
|
# Configure nginx
|
||||||
sudo sed -i "s@PATHTOCHANGE@$path@g" ../sources/nginx/rutorrent.conf
|
sudo sed -i "s@PATHTOCHANGE@$path@g" ../sources/nginx/rutorrent.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user