mirror of
https://github.com/YunoHost-Apps/piwigo_ynh.git
synced 2024-09-03 20:06:03 +02:00
Merge pull request #6 from aymhce/patch-1
replace sed -i on /etc/hosts by simple sed with cp
This commit is contained in:
commit
d056dca453
1 changed files with 2 additions and 3 deletions
|
@ -103,6 +103,5 @@ then
|
|||
fi
|
||||
|
||||
# Remove temporary entry in /etc/hosts
|
||||
sudo sed -i '/yunopiwigo/d' /etc/hosts
|
||||
|
||||
|
||||
sudo sed '/yunopiwigo/d' /etc/hosts > /tmp/hosts.tmp
|
||||
sudo cp /tmp/hosts.tmp /etc/hosts ; sudo rm -f /tmp/hosts.tmp
|
||||
|
|
Loading…
Add table
Reference in a new issue