diff --git a/scripts/install b/scripts/install index 1e2355f..0af09fc 100644 --- a/scripts/install +++ b/scripts/install @@ -44,8 +44,8 @@ sudo service transmission-daemon reload 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 cp ../sources/toolbar-downloads.png /usr/share/transmission/web/style/transmission/images/toolbar-downloads.png +sudo bash -c '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 diff --git a/scripts/upgrade b/scripts/upgrade index ab7217f..a707e51 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -25,8 +25,8 @@ sudo cp ../conf/settings.json /etc/transmission-daemon/settings.json sudo service transmission-daemon reload # 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 cp ../sources/toolbar-downloads.png /usr/share/transmission/web/style/transmission/images/toolbar-downloads.png +sudo bash -c '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