Inital Commit
All checks were successful
VLMCSD / VLMCSD [arm64] (push) Successful in 12s
VLMCSD / VLMCSD [amd64] (push) Successful in 18s

This commit is contained in:
Cantibra
2025-10-26 21:11:06 +01:00
commit 5de27443af
99 changed files with 25806 additions and 0 deletions

42
root/DEBIAN/postinst Normal file
View File

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