From c4f7c226a24c93f3b8871fab742e273217b3a499 Mon Sep 17 00:00:00 2001 From: opi Date: Tue, 11 Nov 2014 16:37:09 +0100 Subject: [PATCH] =?UTF-8?q?[fix]=C2=A0Wrong=20paths=20and=20permissions=20?= =?UTF-8?q?when=20patching=20transmission=20sources.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/install | 4 ++-- scripts/upgrade | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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