diff --git a/scripts/restore b/scripts/restore index c624a99..6ada7ec 100644 --- a/scripts/restore +++ b/scripts/restore @@ -54,24 +54,19 @@ ynh_restore_file --origin_path=/usr/share/transmission ynh_secure_remove --file=/var/lib/transmission-daemon ynh_restore_file --origin_path=/var/lib/transmission-daemon -#================================================= -# OPEN PORTS -#================================================= -ynh_script_progression --message="Configuring firewall..." --weight=13 - -ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port -ynh_exec_warn_less yunohost firewall allow Both $peer_port - #================================================= # YUNOHOST MULTIMEDIA INTEGRATION #================================================= ynh_script_progression --message="Adding multimedia directories..." --weight=4 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) ynh_multimedia_addfolder --source_dir="$data_dir" --dest_dir="share/Torrents" + # And share completed directory ynh_multimedia_addfolder --source_dir="$data_dir/completed" --dest_dir="share/Torrents" + # Share also watched directory, to allow to use it easily ynh_multimedia_addfolder --source_dir="$data_dir/watched" --dest_dir="share/Torrent to download"