Skip to content

Commit

Permalink
[freeradius] Fixed problems prohibiting start
Browse files Browse the repository at this point in the history
  • Loading branch information
atb00ker committed Apr 28, 2021
1 parent ef14796 commit 8c0bbc8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}

- name: Set default python version
run: sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
run: sudo update-alternatives --install /usr/bin/python python ${pythonLocation}/bin/python3.8 2


- name: Install python dependencies
run: |
sudo python3 -m pip install molecule[docker] yamllint ansible ansible-lint docker openwisp-utils[qa]
python -m pip install molecule[docker] yamllint ansible ansible-lint docker openwisp-utils[qa]
- name: QA checks
run: |
Expand Down
2 changes: 1 addition & 1 deletion tasks/freeradius.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@

- name: Inner tunnel
template:
src: freeradius/openwisp_site.j2
src: freeradius/inner_tunnel.j2
dest: "{{ freeradius_sites_enabled_dir }}/inner-tunnel"
mode: 0640
owner: freerad
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
server inner-tunnel {
server inner_tunnel {
listen {
ipaddr = 127.0.0.1
port = 18120
Expand Down
11 changes: 5 additions & 6 deletions templates/freeradius/sql_counter.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

sqlcounter dailycounter {
sql_module_instance = sql
dialect = ${modules.sql.dialect}
dialect = "{{ freeradius_sql.dialect }}"

counter_name = Daily-Session-Time
check_name = Max-Daily-Session
Expand All @@ -13,11 +13,10 @@ sqlcounter dailycounter {

$INCLUDE ${modconfdir}/sql/counter/${dialect}/${.:instance}.conf
}

# The dailybandwidthcounter is added by OpenWISP
sqlcounter dailybandwidthcounter {
sql_module_instance = sql
dialect = ${modules.sql.dialect}
dialect = "{{ freeradius_sql.dialect }}"

counter_name = Max-Daily-Session-Traffic
check_name = Max-Daily-Session-Traffic
Expand All @@ -29,7 +28,7 @@ sqlcounter dailybandwidthcounter {

sqlcounter noresetcounter {
sql_module_instance = sql
dialect = ${modules.sql.dialect}
dialect = "{{ freeradius_sql.dialect }}"

counter_name = Max-All-Session-Time
check_name = Max-All-Session
Expand All @@ -41,7 +40,7 @@ sqlcounter noresetcounter {

sqlcounter monthlycounter {
sql_module_instance = sql
dialect = ${modules.sql.dialect}
dialect = "{{ freeradius_sql.dialect }}"

counter_name = Monthly-Session-Time
check_name = Max-Monthly-Session
Expand All @@ -54,7 +53,7 @@ sqlcounter monthlycounter {

sqlcounter expire_on_login {
sql_module_instance = sql
dialect = ${modules.sql.dialect}
dialect = "{{ freeradius_sql.dialect }}"

counter_name = Expire-After-Initial-Login
check_name = Expire-After
Expand Down

0 comments on commit 8c0bbc8

Please sign in to comment.