From 033c9d6f8c1806388badd7425aff5addc8c35b6d Mon Sep 17 00:00:00 2001 From: Hugo Levy-Falk Date: Sun, 1 Sep 2019 16:04:53 +0200 Subject: [PATCH] MAKE RADIUS INSTALLATION GREAT (not really again, but you got it right ?) --- apt_requirements_radius.txt | 22 ++++++++++++++++++++++ install_re2o.sh | 21 +++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 apt_requirements_radius.txt diff --git a/apt_requirements_radius.txt b/apt_requirements_radius.txt new file mode 100644 index 00000000..41bf6d59 --- /dev/null +++ b/apt_requirements_radius.txt @@ -0,0 +1,22 @@ +python-django +python-dateutil +texlive-latex-base +texlive-fonts-recommended +python-djangorestframework +python-django-reversion +python-pip +libsasl2-dev libldap2-dev +libssl-dev +python-crypto +python-git +javascript-common +libjs-jquery +libjs-jquery-ui +libjs-jquery-timepicker +libjs-bootstrap +fonts-font-awesome +graphviz +git +gettext +freeradius-common +freeradius-python2 diff --git a/install_re2o.sh b/install_re2o.sh index d6b0a4ef..db34739c 100755 --- a/install_re2o.sh +++ b/install_re2o.sh @@ -4,6 +4,7 @@ SETTINGS_LOCAL_FILE='re2o/settings_local.py' SETTINGS_EXAMPLE_FILE='re2o/settings_local.example.py' APT_REQ_FILE="apt_requirements.txt" +APT_RADIUS_REQ_FILE="apt_requirements_radius.txt" PIP_REQ_FILE="pip_requirements.txt" LDIF_DB_FILE="install_utils/db.ldiff" @@ -73,6 +74,22 @@ install_requirements() { } +install_radius_requirements() { + ### Usage: install_requirements + # + # This function will install the required packages from APT repository + # and Pypi repository. Those packages are all required for Re2o to work + # properly. + ### + + echo "Setting up the required packages ..." + cat $APT_RADIUS_REQ_FILE | xargs apt-get -y install + python -m pip install -r $PIP_REQ_FILE + echo "Setting up the required packages: Done" +} + + + install_database() { ### Usage: install_database @@ -802,6 +819,10 @@ main_function() { update_django ;; + radius ) + install_radius_requirements + ;; + copy-templates-files ) copy_templates_files ;;