mirror of
https://github.com/PaesslerAG/docker-multi-platform-probe.git
synced 2026-02-20 22:15:40 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b04fc33694 | ||
|
|
198cc27854 | ||
|
|
94519a402f | ||
|
|
546ee7af5e | ||
|
|
dfdc14a586 | ||
|
|
8bb3d9b08b |
30
.github/workflows/dockerhub-description.yml
vendored
30
.github/workflows/dockerhub-description.yml
vendored
@@ -1,30 +0,0 @@
|
||||
# https://github.com/peter-evans/dockerhub-description
|
||||
|
||||
name: Update Docker Hub Description
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- README.md
|
||||
- .github/workflows/dockerhub-description.yml
|
||||
|
||||
env:
|
||||
IMAGE_NAME: paessler/multi-platform-probe
|
||||
|
||||
jobs:
|
||||
update-description:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out the repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Docker Hub Description
|
||||
uses: peter-evans/dockerhub-description@v4
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
|
||||
repository: ${{ env.IMAGE_NAME }}
|
||||
short-description: ${{ github.event.repository.description }}
|
||||
enable-url-completion: true
|
||||
@@ -91,8 +91,8 @@ You can also use the `/opt/paessler/share/scripts` volume for the scripts of the
|
||||
```sh
|
||||
docker run -it \
|
||||
--network bridge \
|
||||
-v ./scripts:/opt/paessler/share/scripts:ro \
|
||||
-v ./config:/config \
|
||||
-v $(pwd)/scripts:/opt/paessler/share/scripts:ro \
|
||||
-v $(pwd)/config:/config \
|
||||
--cap-add NET_ADMIN \
|
||||
--cap-add NET_RAW \
|
||||
paessler/multi-platform-probe:latest
|
||||
|
||||
@@ -18,7 +18,7 @@ do
|
||||
;;
|
||||
esac
|
||||
done
|
||||
if [ $_passthrough -neq 0 ] ; then
|
||||
if [ $_passthrough -ne 0 ] ; then
|
||||
exec gosu paessler_mpprobe:paessler_mpprobe \
|
||||
${PRTGMPPROBE__BINARY} \
|
||||
"$@"
|
||||
@@ -51,7 +51,7 @@ if [ ! -f "${PRTGMPPROBE__CONFIG_FILE}" ] ; then
|
||||
fi
|
||||
|
||||
# Get/Generate a probe id from PRTGMPPROBE__ID_FILE or from PRTGMPPROBE__ID if not set in PRTGMPPROBE__CONFIG_FILE
|
||||
if [ ! grep -q "^id:" "${PRTGMPPROBE__CONFIG_FILE}" ] ; then
|
||||
if ! grep -q "^id:" "${PRTGMPPROBE__CONFIG_FILE}" ; then
|
||||
if [ -z "${PRTGMPPROBE__ID-}" ] ; then
|
||||
if [ ! -f "${PRTGMPPROBE__ID_FILE}" ] ; then
|
||||
cat /proc/sys/kernel/random/uuid > ${PRTGMPPROBE__ID_FILE} || (
|
||||
|
||||
Reference in New Issue
Block a user