mirror of
https://github.com/YunoHost-Apps/transmission_ynh.git
synced 2024-09-04 01:46:12 +02:00
Do not load kernel options into package_check
This commit is contained in:
parent
0a5a5deaf8
commit
b5ffe94ab4
4 changed files with 12 additions and 4 deletions
|
@ -130,7 +130,9 @@ 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
|
||||
sysctl --system
|
||||
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
|
||||
sysctl --system
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# STORE THE CHECKSUM OF THE CONFIG FILE
|
||||
|
|
|
@ -77,7 +77,9 @@ ynh_secure_remove --file=/usr/share/transmission
|
|||
ynh_secure_remove --file=/var/lib/transmission-daemon
|
||||
# Kernel parameters
|
||||
ynh_secure_remove --file=/etc/sysctl.d/90-transmission.conf
|
||||
sysctl --system
|
||||
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
|
||||
sysctl --system
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALISATION
|
||||
|
|
|
@ -74,7 +74,9 @@ ynh_secure_remove --file=/etc/transmission-daemon/settings.json
|
|||
ynh_restore_file --origin_path=/etc/transmission-daemon/settings.json
|
||||
|
||||
ynh_restore_file --src_path="/etc/sysctl.d/90-transmission.conf"
|
||||
sysctl --system
|
||||
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
|
||||
sysctl --system
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# RESTORE DATA
|
||||
|
|
|
@ -138,7 +138,9 @@ 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
|
||||
sysctl --system
|
||||
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 0 ]; then
|
||||
sysctl --system
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# STORE THE CHECKSUM OF THE CONFIG FILE
|
||||
|
|
Loading…
Add table
Reference in a new issue