1 parent
7cae29f799
commit
8ee380097e
2 files changed
+6
-2
No files matched your search
@@ -14,7 +14,7 @@ jobs:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
DEPLOY_PATH: /var/www/html/solar-relay
|
DEPLOY_PATH: /var/www/html/solar-relay
|
||||||
SERVICE: solar-relay.service
|
SERVICE: solar-relay
|
||||||
HEALTH_URL: https://rpioffice.nest.lutran.ch/solar-relay/healthz
|
HEALTH_URL: https://rpioffice.nest.lutran.ch/solar-relay/healthz
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -273,8 +273,12 @@ directory and keep the local config there. Install the unit before the first dep
|
|||||||
then add a restricted sudoers rule using the actual runner
|
then add a restricted sudoers rule using the actual runner
|
||||||
account and the path from `command -v systemctl`:
|
account and the path from `command -v systemctl`:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo visudo -f /etc/sudoers.d/solar-relay
|
||||||
|
```
|
||||||
|
|
||||||
```sudoers
|
```sudoers
|
||||||
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl restart solar-relay.service
|
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl restart solar-relay
|
||||||
```
|
```
|
||||||
|
|
||||||
The workflow installs dependencies and runs tests in `.venv-ci`, checks the installed
|
The workflow installs dependencies and runs tests in `.venv-ci`, checks the installed
|
||||||
|
|||||||
Reference in new issue
Block a user