ckb-next/debian/postinst
ferreo ce1c786ea6
Some checks failed
PikaOS Package Build & Release (amd64-v3) / build (push) Failing after 27s
first release
2025-02-10 18:47:52 +00:00

23 lines
451 B
Bash
Executable File

#!/bin/bash
. /usr/share/debconf/confmodule
if [[ $1 == "configure" ]]; then
systemctl unmask ckb-next-daemon.service
systemctl enable ckb-next-daemon.service
fi
OLDPID=$(pidof ckb-next)
if [[ -n "$OLDPID" ]]; then
killall -HUP ckb-next 2>/dev/null
sleep 6
NEWPID=$(pidof ckb-next)
if [[ "$OLDPID" == "$NEWPID" ]]; then
killall -9 ckb-next 2>/dev/null
fi
fi
systemctl start ckb-next-daemon.service
#DEBHELPER#