|
@@ -9,11 +9,13 @@ logLevel: "INFO"
|
|
|
# Actions (buttons) to show up on the WebUI:
|
|
# Actions (buttons) to show up on the WebUI:
|
|
|
actions:
|
|
actions:
|
|
|
# This will send 1 ping (-c 1)
|
|
# This will send 1 ping (-c 1)
|
|
|
|
|
+ # Docs: https://docs.olivetin.app/action-ping.html
|
|
|
- title: Ping Google.com
|
|
- title: Ping Google.com
|
|
|
shell: ping google.com -c 1
|
|
shell: ping google.com -c 1
|
|
|
icon: ping
|
|
icon: ping
|
|
|
|
|
|
|
|
# Restart lightdm on host "overseer"
|
|
# Restart lightdm on host "overseer"
|
|
|
|
|
+ # Docs: https://docs.olivetin.app/action-ping.html
|
|
|
- title: restart lightdm
|
|
- title: restart lightdm
|
|
|
icon: poop
|
|
icon: poop
|
|
|
shell: ssh root@overseer 'service lightdm restart'
|
|
shell: ssh root@overseer 'service lightdm restart'
|
|
@@ -39,14 +41,10 @@ actions:
|
|
|
|
|
|
|
|
# OliveTin can control containers - docker is just a command line app.
|
|
# OliveTin can control containers - docker is just a command line app.
|
|
|
#
|
|
#
|
|
|
- # However, if you are running in a container you will need to do some setup;
|
|
|
|
|
- #
|
|
|
|
|
- # 1) When creating the container, bind mount the docker sock like this;
|
|
|
|
|
- # docker create -v /var/run/docker.sock:/container/path/docker.sock ...additional args here...
|
|
|
|
|
- #
|
|
|
|
|
- # 2) Install the docker client like this (if using the Fedora base image)
|
|
|
|
|
- # - docker exec -it olivetin dnf install -y docker
|
|
|
|
|
|
|
+ # However, if you are running in a container you will need to do some setup,
|
|
|
|
|
+ # see the docs below.
|
|
|
#
|
|
#
|
|
|
|
|
+ # Docs: https://docs.olivetin.app/action-container-control.html
|
|
|
- title: Restart Plex
|
|
- title: Restart Plex
|
|
|
icon: smile
|
|
icon: smile
|
|
|
shell: docker restart plex
|
|
shell: docker restart plex
|