Skip to content

Commit

Permalink
Add support for openvpn on AL2
Browse files Browse the repository at this point in the history
  • Loading branch information
jawadqur committed Feb 22, 2024
1 parent ccf6b0c commit 2b522d8
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions flavors/vpn_nlb_central/vpnvm_new.sh
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,11 @@ install_webserver() {

logs_helper "installing webserver"
#Webserver used for QRCodes
# apt -y install lighttpd
if [[ $DISTRO == "Ubuntu" ]]; then
apt -y install lighttpd
else
yum -y install lighttpd
fi
cp "$OPENVPN_PATH/bin/templates/lighttpd.conf.template" /etc/lighttpd/lighttpd.conf

mkdir -p --mode=750 /var/www/qrcode
Expand Down Expand Up @@ -524,17 +528,8 @@ function main() {
install_cron



cp /etc/openvpn/bin/templates/lighttpd.conf.template /etc/lighttpd/lighttpd.conf
mkdir -p --mode=750 /var/www/qrcode
chown openvpn:www-data /var/www/qrcode
mkdir -p /etc/lighttpd/certs
cp /root/server.pem /etc/lighttpd/certs/server.pem

# service lighttpd restart
systemctl restart lighttpd

systemctl restart openvpn

}

Expand Down

0 comments on commit 2b522d8

Please sign in to comment.