Skip to content

Commit

Permalink
ruTorrent: Add country flags back! (swizzin#1109)
Browse files Browse the repository at this point in the history
Adds country flags back to ruTorrent!
  • Loading branch information
stickz authored Dec 23, 2023
1 parent 9299937 commit cd601df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sources/functions/rutorrent
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

function rutorrent_install() {
apt_install sox geoip-database p7zip-full zip unzip
apt_install sox geoip-database p7zip-full zip unzip php-bcmath

mkdir -p /srv
if [[ ! -d /srv/rutorrent ]]; then
Expand All @@ -17,6 +17,7 @@ function rutorrent_install() {
rm -rf /srv/rutorrent/plugins/_cloudflare
rm -rf /srv/rutorrent/plugins/extratio
rm -rf /srv/rutorrent/plugins/rpc
rm -rf /srv/rutorrent/plugins/geoip
rm -rf /srv/rutorrent/conf/config.php
echo_progress_done "ruTorrent cloned"
fi
Expand Down Expand Up @@ -48,6 +49,10 @@ function rutorrent_install() {
sed -i "s/changeWhat = \"cell-background\";/changeWhat = \"font\";/g" /srv/rutorrent/plugins/ratiocolor/init.js || { echo_error "git of autodl plugin to main plugins seems to have failed"; }
fi

if [[ ! -d /srv/rutorrent/plugins/geoip2 ]]; then
git clone https://github.com/Micdu70/geoip2-rutorrent /srv/rutorrent/plugins/geoip2 >> ${log} 2>&1 || { echo_error "git of geoip2 plugin to main plugins seems to have failed"; }
fi

echo_progress_done "Plugins downloaded"

if [[ -f /install/.quota.lock ]] && [[ -z $(grep quota /srv/rutorrent/plugins/diskspace/action.php) ]]; then
Expand Down

0 comments on commit cd601df

Please sign in to comment.