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