add PERSISTENTKEEPALIVE support

This commit is contained in:
DerDanilo 2021-06-06 01:10:43 +02:00
parent 96102d009c
commit 88a701c16a
3 changed files with 15 additions and 0 deletions

View file

@ -1129,6 +1129,13 @@ installPiVPN(){
echo "pivpnPROTO=${pivpnPROTO}" >> ${tempsetupVarsFile}
echo "pivpnMTU=${pivpnMTU}" >> ${tempsetupVarsFile}
# Write PERSISTENTKEEPALIVE if provided via unattended file
# May also be added manually to /etc/pivpn/wireguard/setupVars.conf
# post installation to be used for client profile generation
if [ "$pivpnPERSISTENTKEEPALIVE" ]; then
echo "pivpnPERSISTENTKEEPALIVE=${pivpnPERSISTENTKEEPALIVE}" >> ${tempsetupVarsFile}
fi
fi
{