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

use sysctl --load

This commit is contained in:
kay0u 2019-05-09 12:25:08 +02:00
parent b5ffe94ab4
commit 789cc61498
4 changed files with 4 additions and 4 deletions

View file

@ -131,7 +131,7 @@ cp ../conf/settings.json /etc/transmission-daemon/settings.json
cp ../conf/90-transmission.conf /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 [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
sysctl --system sysctl --load=/etc/sysctl.d/90-transmission.conf
fi fi
#================================================= #=================================================

View file

@ -78,7 +78,7 @@ ynh_secure_remove --file=/var/lib/transmission-daemon
# Kernel parameters # Kernel parameters
ynh_secure_remove --file=/etc/sysctl.d/90-transmission.conf ynh_secure_remove --file=/etc/sysctl.d/90-transmission.conf
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
sysctl --system sysctl --load=/etc/sysctl.d/90-transmission.conf
fi fi
#================================================= #=================================================

View file

@ -75,7 +75,7 @@ ynh_restore_file --origin_path=/etc/transmission-daemon/settings.json
ynh_restore_file --src_path="/etc/sysctl.d/90-transmission.conf" ynh_restore_file --src_path="/etc/sysctl.d/90-transmission.conf"
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
sysctl --system sysctl --load=/etc/sysctl.d/90-transmission.conf
fi fi
#================================================= #=================================================

View file

@ -139,7 +139,7 @@ ynh_backup_if_checksum_is_different --file=/etc/sysctl.d/90-transmission.conf
cp ../conf/90-transmission.conf /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 [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
sysctl --system sysctl --load=/etc/sysctl.d/90-transmission.conf
fi fi
#================================================= #=================================================