mirror of
https://github.com/YunoHost-Apps/transmission_ynh.git
synced 2024-09-04 01:46:12 +02:00
fix
This commit is contained in:
parent
7cb3bf177d
commit
dff7e9b00d
2 changed files with 5 additions and 0 deletions
|
@ -74,10 +74,13 @@ fi
|
||||||
ynh_script_progression --message="Adding multimedia directories..." --weight=4
|
ynh_script_progression --message="Adding multimedia directories..." --weight=4
|
||||||
|
|
||||||
ynh_multimedia_build_main_dir
|
ynh_multimedia_build_main_dir
|
||||||
|
|
||||||
# Set rights on transmission directory (parent need to be readable by other, and progress need to be writable by multimedia. Because files will move)
|
# Set rights on transmission directory (parent need to be readable by other, and progress need to be writable by multimedia. Because files will move)
|
||||||
ynh_multimedia_addfolder --source_dir="$data_dir" --dest_dir="share/Torrents"
|
ynh_multimedia_addfolder --source_dir="$data_dir" --dest_dir="share/Torrents"
|
||||||
|
|
||||||
# And share completed directory
|
# And share completed directory
|
||||||
ynh_multimedia_addfolder --source_dir="$data_dir/completed" --dest_dir="share/Torrents"
|
ynh_multimedia_addfolder --source_dir="$data_dir/completed" --dest_dir="share/Torrents"
|
||||||
|
|
||||||
# Share also watched directory, to allow to use it easily
|
# Share also watched directory, to allow to use it easily
|
||||||
ynh_multimedia_addfolder --source_dir="$data_dir/watched" --dest_dir="share/Torrent to download"
|
ynh_multimedia_addfolder --source_dir="$data_dir/watched" --dest_dir="share/Torrent to download"
|
||||||
|
|
||||||
|
|
|
@ -39,8 +39,10 @@ ynh_script_progression --message="Removing various files..."
|
||||||
|
|
||||||
# Web interface
|
# Web interface
|
||||||
ynh_secure_remove --file=/usr/share/transmission
|
ynh_secure_remove --file=/usr/share/transmission
|
||||||
|
|
||||||
# And data
|
# And data
|
||||||
ynh_secure_remove --file=/var/lib/transmission-daemon
|
ynh_secure_remove --file=/var/lib/transmission-daemon
|
||||||
|
|
||||||
# Kernel parameters
|
# Kernel parameters
|
||||||
if [ -e /proc/sys/net/core/rmem_max ]
|
if [ -e /proc/sys/net/core/rmem_max ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Reference in a new issue