Skip to content

Commit

Permalink
Add init scripts for Wireguard Prometheus Exporter package installation
Browse files Browse the repository at this point in the history
  • Loading branch information
gjed committed Dec 2, 2024
1 parent b3a614d commit d94d510
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

# This is the init file used for adding os or pip packages to install lists.
# It takes advantage of the built-in init-mods-package-install init script that comes with the baseimages.
# If using this, we need to make sure we set this init as a dependency of init-mods-package-install so this one runs first

# Alpine
if [ -f /sbin/apk ]; then
echo "\
libc6-compat \
libgcc \
" >> /mod-repo-packages-to-install.list
fi
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oneshot
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-universal-wireguard-prometheus-exporter-add-package/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# shellcheck shell=bash

exec \
prometheus_wireguard_exporter
/usr/bin/prometheus_wireguard_exporter

0 comments on commit d94d510

Please sign in to comment.