Fix pipeline errors

This commit is contained in:
jduo 2020-09-10 06:08:06 -03:00
parent b222fa01d5
commit 1704b18a1e

View File

@ -142,8 +142,8 @@ prefetch: yes" >>/etc/unbound/unbound.conf
echo "server: echo "server:
use-syslog: yes use-syslog: yes
do-daemonize: no do-daemonize: no
username: "unbound" username: \"unbound\"
directory: "/etc/unbound" directory: \"/etc/unbound\"
trust-anchor-file: trusted-key.key trust-anchor-file: trusted-key.key
root-hints: root.hints root-hints: root.hints
interface: $VPN_NETWORK.1 interface: $VPN_NETWORK.1
@ -793,7 +793,7 @@ ifconfig-pool-persist ipp.txt" >>/etc/openvpn/server.conf
done done
;; ;;
2) # Self-hosted DNS resolver (Unbound) 2) # Self-hosted DNS resolver (Unbound)
echo 'push "dhcp-option DNS $VPN_NETWORK.1"' >>/etc/openvpn/server.conf echo "push \"dhcp-option DNS $VPN_NETWORK.1\"" >>/etc/openvpn/server.conf
if [[ $IPV6_SUPPORT == 'y' ]]; then if [[ $IPV6_SUPPORT == 'y' ]]; then
echo 'push "dhcp-option DNS fd42:42:42:42::1"' >>/etc/openvpn/server.conf echo 'push "dhcp-option DNS fd42:42:42:42::1"' >>/etc/openvpn/server.conf
fi fi
@ -848,7 +848,7 @@ ifconfig-pool-persist ipp.txt" >>/etc/openvpn/server.conf
echo "No DNS push config" echo "No DNS push config"
;; ;;
esac esac
if (($DNS != 14)); then if [[ $DNS != 14 ]]; then
echo 'push "redirect-gateway def1 bypass-dhcp"' >>/etc/openvpn/server.conf echo 'push "redirect-gateway def1 bypass-dhcp"' >>/etc/openvpn/server.conf
fi fi
@ -1048,10 +1048,10 @@ verb 3" >>/etc/openvpn/client-template.txt
if [[ $COMPRESSION_ENABLED == "y" ]]; then if [[ $COMPRESSION_ENABLED == "y" ]]; then
echo "compress $COMPRESSION_ALG" >>/etc/openvpn/client-template.txt echo "compress $COMPRESSION_ALG" >>/etc/openvpn/client-template.txt
fi fi
if [[ "$CLIENT_TEMPLATE_APPEND" != "" ]]; then if [[ $CLIENT_TEMPLATE_APPEND != "" ]]; then
echo "appending costum config CLIENT_TEMPLATE_APPEND to /etc/openvpn/client-template.txt ..." echo "appending costum config CLIENT_TEMPLATE_APPEND to /etc/openvpn/client-template.txt ..."
echo "" >> /etc/openvpn/client-template.txt echo "" >>/etc/openvpn/client-template.txt
echo "$CLIENT_TEMPLATE_APPEND" >> /etc/openvpn/client-template.txt echo "$CLIENT_TEMPLATE_APPEND" >>/etc/openvpn/client-template.txt
fi fi
# Generate the custom client.ovpn # Generate the custom client.ovpn