init
This commit is contained in:
20
cato-client-bin.install
Normal file
20
cato-client-bin.install
Normal file
@@ -0,0 +1,20 @@
|
||||
post_install() {
|
||||
ldconfig
|
||||
update-ca-trust
|
||||
systemd-sysusers
|
||||
systemd-tmpfiles --create cato-client-bin.conf
|
||||
rm -f /var/run/cato-sdp.i /var/run/cato-sdp.o
|
||||
systemctl daemon-reload
|
||||
systemctl enable cato-client.service
|
||||
systemctl try-restart cato-client.service
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
rm -f /var/run/cato-sdp.i /var/run/cato-sdp.o
|
||||
systemctl disable --now cato-client.service 2>/dev/null || true
|
||||
systemctl daemon-reload
|
||||
}
|
||||
Reference in New Issue
Block a user