From 88304eb29747b1aadbc491a9dd64bef9ac60b093 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sun, 19 Jun 2016 16:14:52 +0200 Subject: [PATCH] Ajout yunohost.multimedia # 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 --source="/home/yunohost.transmission" --dest="share/Torrents" # And share completed directory sudo ./yunohost.multimedia-master/script/ynh_media_addfolder.sh --source="/home/yunohost.transmission/completed" --dest="share/Torrents" --- scripts/upgrade | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 6f26b67..ce9ca34 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -43,3 +43,12 @@ fi sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf sudo service nginx reload + +# Update 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 --source="/home/yunohost.transmission" --dest="share/Torrents" +# And share completed directory +sudo ./yunohost.multimedia-master/script/ynh_media_addfolder.sh --source="/home/yunohost.transmission/completed" --dest="share/Torrents"