Skip to content

Commit

Permalink
Merge pull request #10 from moetiker/patch-1
Browse files Browse the repository at this point in the history
fix path for mv and sed
  • Loading branch information
oetiker authored Jul 3, 2020
2 parents d8f5cd4 + 72242e0 commit afdebe5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ubuntu/helpers/create_hosts_file.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ After=network.target auditd.service

[Service]
Type=oneshot
ExecStart=/usr/bin/mv /etc/hosts.lx /etc/hosts
ExecStart=/usr/bin/sed -i s/HOSTNAME/%H/g /etc/hosts
ExecStart=/bin/mv /etc/hosts.lx /etc/hosts
ExecStart=/bin/sed -i s/HOSTNAME/%H/g /etc/hosts
ExecStartPost=/bin/systemctl disable create_hosts_file.service

[Install]
Expand Down

0 comments on commit afdebe5

Please sign in to comment.