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:
parent
b5ffe94ab4
commit
789cc61498
4 changed files with 4 additions and 4 deletions
|
@ -131,7 +131,7 @@ 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
|
||||
sysctl --system
|
||||
sysctl --load=/etc/sysctl.d/90-transmission.conf
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -78,7 +78,7 @@ ynh_secure_remove --file=/var/lib/transmission-daemon
|
|||
# Kernel parameters
|
||||
ynh_secure_remove --file=/etc/sysctl.d/90-transmission.conf
|
||||
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
|
||||
sysctl --system
|
||||
sysctl --load=/etc/sysctl.d/90-transmission.conf
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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"
|
||||
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
|
||||
sysctl --system
|
||||
sysctl --load=/etc/sysctl.d/90-transmission.conf
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
|
||||
sysctl --system
|
||||
sysctl --load=/etc/sysctl.d/90-transmission.conf
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue