File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,23 @@ install_if_not transmission-daemon
2828# Download the VM
2929curl -fSLO --retry 3 https://download.kafit.se/s/dnkWptz8AK4JZDM/download
3030mv download NextcloudVM.zip
31+ chown debian-transmission:debian-transmission NextcloudVM.zip
32+
33+ # Set more memory to sysctl
34+ echo " net.core.rmem_max = 16777216" >> /etc/sysctl.conf
35+ echo " net.core.wmem_max = 4194304" >> /etc/sysctl.conf
36+ sysctl -p
3137
3238# Create torrent
33- transmission-create -o nextcloudvmhanssonit.torrent -c " https://www.hanssonit.se/nextcloud-vm" " $( for tracker in $( curl_to_dir " $GITHUB_REPO " /torrent trackers.txt /tmp && cat /tmp/trackers.txt) ; do echo -t " $tracker " ; done) " NextcloudVM.zip
39+ trackerslist=" $( for tracker in $( curl " $GITHUB_REPO " /torrent/trackers.txt) ; do echo " -t $tracker " ; done) "
40+ transmission-create -o nextcloudvmhanssonit.torrent -c " https://www.hanssonit.se/nextcloud-vm" " $trackerslist " NextcloudVM.zip
3441
3542# Seed it!
3643transmission-remote -n ' transmission:transmission' -a nextcloudvmhanssonit.torrent
44+
45+ # Copy it to local NC account
46+ nextclouduser=" $( input_box_flow " Please enter the Nextcloud user that you want to move the finished torrent file to:" ) "
47+ rsync -av nextcloudvmhanssonit.torrent /mnt/ncdata/" $nextclouduser " /files/
48+ chown www-data:www-data /mnt/ncdata/" $nextclouduser " /files/nextcloudvmhanssonit.torrent
49+ nextcloud_occ files:scan " $nextclouduser "
50+ unset nextclouduser
You can’t perform that action at this time.
0 commit comments