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

Support for Devuan #263

Merged
merged 2 commits into from
Jun 7, 2017
Merged

Support for Devuan #263

merged 2 commits into from
Jun 7, 2017

Conversation

drq883
Copy link
Contributor

@drq883 drq883 commented Jun 4, 2017

I just downloaded and installed Devuan (1.0) on my PI3. I wanted to test out pivpn on it and with these mods, it will install and work.

Just thought I'd pass it on as a pull request.

Thanks.

Changes:

  • To simplify further additions to PLAT or OSCN, use
    the case command for checking

  • Treat Devuan as Debian

  • Add /sbin:/usr/sbin to PATH before calling ifconfig

  • Ensure net-tools is installed so we have ifconfig

- To simplify further additions to PLAT or OSCN, use
the case command for checking

- Treat Devuan as Debian

- Add /sbin:/usr/sbin to PATH before calling ifconfig

- Ensure net-tools is installed so we have ifconfig
Copy link
Contributor

@redfast00 redfast00 left a comment

Choose a reason for hiding this comment

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

Thanks a lot! Looks good to me. Have you tested this both on Devuan and on Raspbian?

@drq883
Copy link
Contributor Author

drq883 commented Jun 4, 2017 via email

@drq883
Copy link
Contributor Author

drq883 commented Jun 4, 2017

I hadn't tried running this as root. Let me do some more testing.

@drq883
Copy link
Contributor Author

drq883 commented Jun 4, 2017

I'm going to close this request, fix the errors and create a new one.
Sorry for the bug. Just didn't test all cases this time.

@drq883 drq883 closed this Jun 4, 2017
@redfast00
Copy link
Contributor

You should be able to just commit into your repo, and it will automatically add the commits to the PR. (atleast that's how it works for me). Do you want to reopen this PR?

@drq883
Copy link
Contributor Author

drq883 commented Jun 4, 2017 via email

@redfast00
Copy link
Contributor

Thank you for contributing to open source software! It's a really great way to give back. If you plan on doing some more PR or even making helpful issues, definitely check out codecuriosity.com. They give you gift cards for contributing to open source software. Please feel free to ask any questions if you have trouble using Git or GitHub.

@drq883
Copy link
Contributor Author

drq883 commented Jun 5, 2017

I will reopen this when all testing is done.

Changes:
- Document that Devuan is supported.
- Use special PLAT name, Raspvuan for Pi version
- Use service command for any *vuan PLAT, systemd is no on any
Devuan.
- add net-tools to PIVPN_DEPS
@drq883
Copy link
Contributor Author

drq883 commented Jun 6, 2017

OK.
Tested on Raspbian and verified client config worked
Tested on Devuan (on Pi) and verified client config worked

@drq883 drq883 reopened this Jun 6, 2017
@redfast00 redfast00 merged commit e7def9f into pivpn:test Jun 7, 2017
@redfast00
Copy link
Contributor

Thank you!

fi

case ${PLAT} in
Ubuntu|Raspbian|Debian|Devuan)

Choose a reason for hiding this comment

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

hey @redfast00 , why only here is Ubuntu|Raspbian|Debian|Devuan and other places is Ubuntu|Debian|Devuan

why don't you do a global var to avoid repeating it?

Copy link
Member

@coolapso coolapso Aug 4, 2017

Choose a reason for hiding this comment

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

@fernandog because there are different actions to be taken depending on distro!

For example, Static IP address is not handled by PiVPN if you are using Ubuntu || Debian because it can be a cloud instance with its own address.

so makes total sense to have different conditions for different distros.

I advise you to better read the code, so you can better understand what I am saying

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.

None yet

4 participants