diff --git a/scripts/install b/scripts/install index b864552..1e2355f 100644 --- a/scripts/install +++ b/scripts/install @@ -43,6 +43,11 @@ sudo service transmission-daemon reload # Monitor service sudo yunohost service add transmission-daemon +# Patch sources to add a download button +sudo cp sources/toolbar-downloads.png /usr/share/transmission/web/style/transmission/images/toolbar-downloads.png +sudo cat sources/ynh_common.css >> /usr/share/transmission/web/style/transmission/common.css +sudo sed -i "s@
@@g" /usr/share/transmission/web/index.html + # Configure Nginx and reload sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/transmission.conf diff --git a/sources/toolbar-downloads.png b/sources/toolbar-downloads.png new file mode 100644 index 0000000..e60479f Binary files /dev/null and b/sources/toolbar-downloads.png differ diff --git a/sources/ynh_common.css b/sources/ynh_common.css new file mode 100644 index 0000000..7b7adda --- /dev/null +++ b/sources/ynh_common.css @@ -0,0 +1,4 @@ + /* Inserted by Yunohost install script */ + div#toolbar > div#toolbar-downloads { + background: url("images/toolbar-download.png") no-repeat; + }