diff --git a/scripts/install b/scripts/install index b6e6598..32bbbec 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 > /tmp/hosts.tmp +sudo cp -a /tmp/hosts.tmp /etc/hosts && rm /tmp/hosts.tmp sudo service nginx reload