Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
#548: direct rename and direct unpack active by default
Browse files Browse the repository at this point in the history
on new installations
  • Loading branch information
hugbug committed May 31, 2018
1 parent 0d19722 commit 9437a22
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions linux/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ ConfigureLinux()
sed 's:^WriteBuffer=.*:WriteBuffer=1024:' -i nzbget.conf
Info " Increasing par repair buffer (ParBuffer=100)"
sed 's:^ParBuffer=.*:ParBuffer=100:' -i nzbget.conf
Info " Activating direct rename (DirectRename=yes)"
sed 's:^DirectRename=.*:DirectRename=yes:' -i nzbget.conf
elif test $TOTALFREE -gt 25000 -o $MEMFREE -gt 25000 -o $MEMCACHED -gt 25000; then
Info " Increasing write buffer (WriteBuffer=256)"
sed 's:^WriteBuffer=.*:WriteBuffer=256:' -i nzbget.conf
Expand Down Expand Up @@ -368,6 +370,8 @@ ConfigureLinux()
sed 's:^ScriptPauseQueue=.*:ScriptPauseQueue=yes:' -i nzbget.conf
else
Info " Simultaneous download and post-processing is on"
Info " Activating direct unpack (DirectUnpack=yes)"
sed 's:^DirectUnpack=.*:DirectUnpack=yes:' -i nzbget.conf
fi
fi
}
Expand All @@ -384,6 +388,10 @@ ConfigureFreeBSD()
sed -i '' 's:^WriteBuffer=.*:WriteBuffer=1024:' nzbget.conf
Info " Increasing par repair buffer (ParBuffer=100)"
sed -i '' 's:^ParBuffer=.*:ParBuffer=100:' nzbget.conf
Info " Activating direct rename (DirectRename=yes)"
sed -i '' 's:^DirectRename=.*:DirectRename=yes:' nzbget.conf
Info " Activating direct unpack (DirectUnpack=yes)"
sed -i '' 's:^DirectUnpack=.*:DirectUnpack=yes:' nzbget.conf
}

Configure()
Expand Down
2 changes: 2 additions & 0 deletions windows/build-nzbget.bat
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ if errorlevel 1 goto BUILD_FAILED
%SED% -e "s|WriteBuffer=.*|WriteBuffer=1024|" -i %CONFFILE%
%SED% -e "s|CertStore=.*|CertStore=${AppDir}\\cacert.pem|" -i %CONFFILE%
%SED% -e "s|CertCheck=.*|CertCheck=yes|" -i %CONFFILE%
%SED% -e "s|DirectRename=.*|DirectRename=yes|" -i %CONFFILE%
%SED% -e "s|DirectUnpack=.*|DirectUnpack=yes|" -i %CONFFILE%
rem Hide certain options from web-interface settings page
%SED% -e "s|WebDir=.*|# WebDir=${AppDir}\\webui|" -i %CONFFILE%
%SED% -e "s|LockFile=.*|# LockFile=|" -i %CONFFILE%
Expand Down

0 comments on commit 9437a22

Please sign in to comment.