1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/transmission_ynh.git synced 2024-09-04 01:46:12 +02:00

Merge pull request #66 from YunoHost-Apps/alexAubin-patch-1

Fix install in LXC because of missing /proc/sys/net/core/rmem_max
This commit is contained in:
Maniack Crudelis 2020-02-27 12:14:46 +01:00 committed by GitHub
commit dd6257486d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -130,7 +130,7 @@ ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_f
cp ../conf/settings.json /etc/transmission-daemon/settings.json
cp ../conf/90-transmission.conf /etc/sysctl.d/90-transmission.conf
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
if [ -e /proc/sys/net/core/rmem_max ]; then
sysctl --load=/etc/sysctl.d/90-transmission.conf
fi

View file

@ -74,7 +74,7 @@ ynh_secure_remove --file=/etc/transmission-daemon/settings.json
ynh_restore_file --origin_path=/etc/transmission-daemon/settings.json
ynh_restore_file --origin_path="/etc/sysctl.d/90-transmission.conf"
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
if [ -e /proc/sys/net/core/rmem_max ]; then
sysctl --load=/etc/sysctl.d/90-transmission.conf
fi

View file

@ -138,7 +138,7 @@ cp ../conf/settings.json /etc/transmission-daemon/settings.json
ynh_backup_if_checksum_is_different --file=/etc/sysctl.d/90-transmission.conf
cp ../conf/90-transmission.conf /etc/sysctl.d/90-transmission.conf
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
if [ -e /proc/sys/net/core/rmem_max ]; then
sysctl --load=/etc/sysctl.d/90-transmission.conf
fi