8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-24 20:33:11 +00:00

MAKE RADIUS INSTALLATION GREAT (not really again, but you got it right ?)

This commit is contained in:
Hugo Levy-Falk 2019-09-01 16:04:53 +02:00 committed by root
parent e4d87a4fc7
commit 033c9d6f8c
2 changed files with 43 additions and 0 deletions

View file

@ -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

View file

@ -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 <engine_type> <local_setup> <db_name> <username> <password>
@ -802,6 +819,10 @@ main_function() {
update_django
;;
radius )
install_radius_requirements
;;
copy-templates-files )
copy_templates_files
;;