gauup icon indicating copy to clipboard operation
gauup copied to clipboard

/usr/local/bin/pvepreup.sh in pve-wsl2.md is buggy

Open SamLowryMOI opened this issue 2 years ago • 0 comments

If you are interested. The script /usr/local/bin/pvepreup.sh in pve-wsl2.md only works until /etc/network/interfaces is extended (and isn't there an iface eth0 inet manual missing?). Then

`ip -4 a | awk '/inet .* scope global/ {split($2,out,"/");print out[1]}'`

returns two ip addresses and

awk "/^127\.0\.0\.1.*`hostname`/ {next} /`hostname`/ {\$1 = \"$ip4addr\"} // {print}" /etc/hosts > /etc/hosts.new && mv /etc/hosts.new /etc/hosts`

no longer works (awk: line 1: runaway string constant "172.30.27 ...), i.e. the script is no longer executed.

SamLowryMOI avatar Jul 22 '23 11:07 SamLowryMOI