From 6dbd70a40aa1690d4e4591f20c1426b54591d0e7 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Thu, 11 Feb 2016 12:48:01 +0100 Subject: [PATCH] Ajout yunohost.multimedia --- scripts/upgrade | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 2902e77..3f817d4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -39,3 +39,13 @@ fi sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/transmission.conf sudo service nginx reload + +# Add yunohost.multimedia directory +wget https://github.com/maniackcrudelis/yunohost.multimedia/archive/master.zip +unzip master.zip +sudo ./yunohost.multimedia-master/script/ynh_media_build.sh +# Set rights on transmission directory (parent need to be readable by other, and progress need to be writable by multimedia. Because files will move) +sudo ./yunohost.multimedia-master/script/ynh_media_addfolder.sh "/home/yunohost.transmission" "Torrents" +# And share completed directory +sudo ./yunohost.multimedia-master/script/ynh_media_addfolder.sh "/home/yunohost.transmission/completed" "Torrents" +