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

Add Alpine Linux support #539

Merged
merged 3 commits into from
Jan 26, 2025
Merged

Conversation

notsudoers
Copy link
Contributor

Tested on Aws ec2 with alpine v3.21

#205

@angristan
Copy link
Owner

LGTM! I was able to test in on a Vultr VM

@@ -118,7 +137,7 @@ function installQuestions() {
read -rp "IPv4 or IPv6 public address: " -e -i "${SERVER_PUB_IP}" SERVER_PUB_IP

# Detect public interface and pre-fill for the user
SERVER_NIC="$(ip -4 route ls | grep default | grep -Po '(?<=dev )(\S+)' | head -1)"
SERVER_NIC="$(ip -4 route ls | grep default | awk '/dev/ {for (i=1; i<=NF; i++) if ($i == "dev") print $(i+1)}' | head -1)"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grep in alpine linux is busybox with minimal version and its no option/parameter for "-P"

Copy link
Owner

@angristan angristan Jan 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@angristan
Copy link
Owner

Can you update the README?

@notsudoers
Copy link
Contributor Author

Sure, updated

@angristan
Copy link
Owner

Thanks!

@angristan angristan merged commit 164b35c into angristan:master Jan 26, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants