Inital Commit
All checks were successful
Traefik / Traefik [arm64] (push) Successful in 1m10s
Traefik / Traefik [amd64] (push) Successful in 1m14s

This commit is contained in:
Cantibra
2025-10-26 21:11:06 +01:00
commit 45f4e96f60
17 changed files with 1257 additions and 0 deletions

37
root/DEBIAN/postinst Normal file
View File

@@ -0,0 +1,37 @@
#!/usr/bin/sh
set -e
set -u
if [ -d '/run/systemd/system' ]; then
/usr/bin/systemctl --system daemon-reload > '/dev/null' || true
fi
case "${1}" in
configure)
if [ -x '/usr/bin/deb-systemd-helper' ]; then
/usr/bin/deb-systemd-helper unmask 'traefik.service' > '/dev/null' || true
fi
if /usr/bin/deb-systemd-helper --quiet was-enabled 'traefik.service'; then
/usr/bin/deb-systemd-helper enable 'traefik.service' > '/dev/null' || true
else
/usr/bin/deb-systemd-helper update-state 'traefik.service' > '/dev/null' || true
fi
if [ -x '/etc/init.d/traefik' ]; then
/usr/sbin/update-rc.d 'traefik' defaults > '/dev/null' || true
fi
/usr/bin/chown --quiet --recursive 'traefik' '/etc/traefik'
/usr/bin/chown --quiet 'traefik':'traefik' '/var/lib/traefik'
/usr/bin/chown --quiet 'traefik':'adm' '/var/log/traefik'
/usr/bin/chown --quiet 'traefik':'adm' '/var/logrotate/traefik'
if [ -x '/usr/bin/deb-systemd-invoke' ]; then
/usr/bin/systemctl --system daemon-reload > '/dev/null' || true
if [ -n "${2}" ]; then
_dh_action='restart'
else
_dh_action='start'
fi
/usr/bin/deb-systemd-invoke "${_dh_action}" 'traefik.service' > '/dev/null' || true
fi
;;
esac