Skip to content

Commit

Permalink
Append hosts lookback
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b authored Oct 3, 2018
1 parent 16e4a1d commit fdf71e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cron-boot
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ current_hostname=$(cat /etc/hostname)
if [ "$hostname" != "$current_hostname" ]
then
echo "$hostname" | sudo tee /etc/hostname
echo -e "127.0.0.1\t$hostname" | sudo tee /etc/hosts
echo -e "127.0.0.1\t$hostname" | sudo tee --append /etc/hosts
rm -f ~/www/logbox/cfg.dat

sudo reboot
Expand Down

0 comments on commit fdf71e3

Please sign in to comment.