Configure hotspot credentials from dashboard
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=Configure Pi Car Companion hotspot
|
||||
After=NetworkManager.service
|
||||
Wants=NetworkManager.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
EnvironmentFile=/etc/pi-car-companion/companion.env
|
||||
Environment=HOME=/var/lib/pi-car-companion
|
||||
WorkingDirectory=/opt/pi-car-companion/current
|
||||
ExecStart=/usr/bin/node /opt/pi-car-companion/current/server/dist/network-configure.js
|
||||
TimeoutStartSec=60s
|
||||
UMask=0077
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectHome=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectKernelModules=true
|
||||
ProtectControlGroups=true
|
||||
RestrictRealtime=true
|
||||
LockPersonality=true
|
||||
SystemCallArchitectures=native
|
||||
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
|
||||
@@ -1 +1,2 @@
|
||||
pi-companion ALL=(root) NOPASSWD: /usr/bin/systemctl start --no-block pi-car-companion-update.service
|
||||
pi-companion ALL=(root) NOPASSWD: /usr/bin/systemctl start --no-block pi-car-companion-network-configure.service
|
||||
|
||||
Reference in New Issue
Block a user