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

Fix install in LXC because of missing /proc/sys/net/core/rmem_max

This commit is contained in:
Alexandre Aubin 2020-02-14 19:04:09 +01:00
parent c3e028a085
commit ff07b48291
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