diff --git a/scripts/install b/scripts/install index 005c674..d2a7009 100644 --- a/scripts/install +++ b/scripts/install @@ -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 #================================================= diff --git a/scripts/remove b/scripts/remove index 3aa5296..5fc03e2 100644 --- a/scripts/remove +++ b/scripts/remove @@ -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 #================================================= diff --git a/scripts/restore b/scripts/restore index 757e128..013eec1 100644 --- a/scripts/restore +++ b/scripts/restore @@ -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 #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index f1b3938..9ad3d67 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 #=================================================