From f3a4ec339266e62cc3fe3b4f2c4755ff3c59c57e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A9veloppeur=20=C3=A9gar=C3=A9?= Date: Sun, 14 Aug 2016 22:28:51 +0200 Subject: [PATCH] Update install for Docker Change sed method on /etc/hosts file, "sed -i" don't work on Docker --- scripts/install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index b6e6598..dfb63b0 100644 --- a/scripts/install +++ b/scripts/install @@ -180,7 +180,8 @@ then fi # Clean hosts -sudo sed -i '/#wordpress_yunohost/d' /etc/hosts +sudo sed '/#wordpress_yunohost/d' /etc/hosts > /etc/hosts.tmp +sudo cp -a /etc/hosts.tmp /etc/hosts && rm /etc/hosts.tmp sudo service nginx reload