mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-22 12:50:16 +00:00
Fixes for Debian support
This commit is contained in:
parent
3c0d0cb176
commit
8f09ee9afd
2 changed files with 5 additions and 5 deletions
|
@ -218,7 +218,7 @@ chooseInterface() {
|
||||||
|
|
||||||
avoidStaticIPv4Ubuntu() {
|
avoidStaticIPv4Ubuntu() {
|
||||||
# If we are in Ubuntu then they need to have previously set their network, so just use what you have.
|
# If we are in Ubuntu then they need to have previously set their network, so just use what you have.
|
||||||
whiptail --msgbox --backtitle "IP Information" --title "IP Information" "Since we think you are using Ubuntu, and not Raspbian, we will not configure a static IP for you
|
whiptail --msgbox --backtitle "IP Information" --title "IP Information" "Since we think you are not using Raspbian, we will not configure a static IP for you.
|
||||||
If you are in Amazon then you can not configure a static IP anyway. Just ensure before this installer started you had set an elastic IP on your instance." $r $c
|
If you are in Amazon then you can not configure a static IP anyway. Just ensure before this installer started you had set an elastic IP on your instance." $r $c
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -353,7 +353,7 @@ stopServices() {
|
||||||
# Stop openvpn
|
# Stop openvpn
|
||||||
$SUDO echo ":::"
|
$SUDO echo ":::"
|
||||||
$SUDO echo -n "::: Stopping openvpn service..."
|
$SUDO echo -n "::: Stopping openvpn service..."
|
||||||
if [[ $PLAT == "Ubuntu" ]]; then
|
if [[ $PLAT == "Ubuntu" || $PLAT == "Debian" ]]; then
|
||||||
$SUDO service openvpn stop || true
|
$SUDO service openvpn stop || true
|
||||||
else
|
else
|
||||||
$SUDO systemctl stop openvpn.service || true
|
$SUDO systemctl stop openvpn.service || true
|
||||||
|
@ -795,7 +795,7 @@ confNetwork() {
|
||||||
if [[ $noUFW -eq 1 ]]; then
|
if [[ $noUFW -eq 1 ]]; then
|
||||||
echo 1 > /tmp/noUFW
|
echo 1 > /tmp/noUFW
|
||||||
$SUDO iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o $IPv4dev -j MASQUERADE
|
$SUDO iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o $IPv4dev -j MASQUERADE
|
||||||
if [[ $PLAT == "Ubuntu" ]]; then
|
if [[ $PLAT == "Ubuntu" || $PLAT == "Debian" ]]; then
|
||||||
$SUDO iptables-save
|
$SUDO iptables-save
|
||||||
else
|
else
|
||||||
$SUDO netfilter-persistent save
|
$SUDO netfilter-persistent save
|
||||||
|
@ -877,7 +877,7 @@ installPiVPN() {
|
||||||
|
|
||||||
displayFinalMessage() {
|
displayFinalMessage() {
|
||||||
# Final completion message to user
|
# Final completion message to user
|
||||||
if [[ $PLAT == "Ubuntu" ]]; then
|
if [[ $PLAT == "Ubuntu" || $PLAT == "Debian" ]]; then
|
||||||
$SUDO service openvpn start
|
$SUDO service openvpn start
|
||||||
else
|
else
|
||||||
$SUDO systemctl enable openvpn.service
|
$SUDO systemctl enable openvpn.service
|
||||||
|
|
|
@ -63,7 +63,7 @@ if [ $REVOKE_STATUS == 0 ]; then
|
||||||
printf "\nThis seems to be the first time you have revoked a cert.\n"
|
printf "\nThis seems to be the first time you have revoked a cert.\n"
|
||||||
printf "We are adding the CRL to the server.conf and restarting openvpn.\n"
|
printf "We are adding the CRL to the server.conf and restarting openvpn.\n"
|
||||||
sed -i '/#crl-verify/c\crl-verify /etc/openvpn/crl.pem' /etc/openvpn/server.conf
|
sed -i '/#crl-verify/c\crl-verify /etc/openvpn/crl.pem' /etc/openvpn/server.conf
|
||||||
if [[ ${PLAT} == "Ubuntu" ]]; then
|
if [[ ${PLAT} == "Ubuntu" || ${PLAT} == "Debian" ]]; then
|
||||||
service openvpn restart
|
service openvpn restart
|
||||||
else
|
else
|
||||||
systemctl restart openvpn.service
|
systemctl restart openvpn.service
|
||||||
|
|
Loading…
Reference in a new issue