Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SamLowryMOI opened this issue Jul 22, 2023 · 0 comments
Open

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

SamLowryMOI opened this issue Jul 22, 2023 · 0 comments

Comments

@SamLowryMOI
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant