mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 19:52:06 +00:00
captive_portal service must run as root
This commit is contained in:
parent
74fb19864f
commit
5674675ef9
2 changed files with 6 additions and 6 deletions
|
@ -6,8 +6,8 @@
|
||||||
template:
|
template:
|
||||||
src: roles/network/templates/captive_portal/captive_portal.py.j2
|
src: roles/network/templates/captive_portal/captive_portal.py.j2
|
||||||
dest: /opt/iiab/captive-portal/captive_portal.py
|
dest: /opt/iiab/captive-portal/captive_portal.py
|
||||||
owner: iiab-admin
|
owner: root
|
||||||
group: iiab-admin
|
group: root
|
||||||
mode: 0740
|
mode: 0740
|
||||||
when: py_captive_portal_install
|
when: py_captive_portal_install
|
||||||
|
|
||||||
|
@ -15,8 +15,8 @@
|
||||||
template:
|
template:
|
||||||
src: roles/network/templates/captive_portal/captive_portal.service.j2
|
src: roles/network/templates/captive_portal/captive_portal.service.j2
|
||||||
dest: /etc/systemd/system/captive_portal.service
|
dest: /etc/systemd/system/captive_portal.service
|
||||||
owner: iiab-admin
|
owner: root
|
||||||
group: iiab-admin
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when: py_captive_portal_install
|
when: py_captive_portal_install
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@ After=syslog.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=iiab-admin
|
User=root
|
||||||
Group=iiab-admin
|
Group=root
|
||||||
WorkingDirectory=/opt/iiab/captive-portal
|
WorkingDirectory=/opt/iiab/captive-portal
|
||||||
ExecStart=/opt/iiab/captive-portal/captive_portal.py
|
ExecStart=/opt/iiab/captive-portal/captive_portal.py
|
||||||
StandardOutput=syslog
|
StandardOutput=syslog
|
||||||
|
|
Loading…
Reference in a new issue