#!/usr/bin/env bash #sample call to build local GPNS install #bash <(curl -s https://repo-ng.captive.net/gpns) #initialize variables pkgdm=false pkgadmin=false pkgmedia=false pkgportal=false pkgradius=false pkglog=false pkglts=false pkgconnector=true allpkgs=false pkgmariadb=true pkgcngateway=false pkgcnradius=true pkgcnradiusbasic=true setutc=true do_apache=true do_memcached=false initialize_db=false do_selinux=false auto_install=true localinstall=false do_firewall=true #we default to an automatic install database_password="AA_dbmariadb01_AA"; database_name="bedrockdm"; memcached_host="localhost" memcached_port="11211" url="wifiportal.io"; release="production" #nosrc true will install the captive-*-nosrc-* packages that don't include source code only development environment and built binaries nosrc=false #no_yum is used for the fusion installer that will have all these packages locally installed already through the cd hence there is no need to yum no_yum=false if [ "$1" == "manual" ]; then auto_install=false; database_password=""; database_name=""; memcached_host="" memcached_port="" fi echo "Welcome to the Airangel GPNS package installer" echo "This installer installs all required packages for the PMS connector and 802.1X RADIUS server" echo "The proposed configuration may break or malfunction any existing configuration on the system so DO NOT install this on a production server that is used for other purposes" echo "This installer assumes that this system is freshly installed CENTOS7 MINIMAL" echo "--------------------------" curl -s https://repo-ng.captive.net/install_base.sh > /tmp/captive_install.sh source /tmp/captive_install.sh rm -f /tmp/captive_install.sh