blob: 038a22d6dc469b0e9a397a217e8eb4e7d6336fa0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
post_install() {
echo ">>>"
echo ">>> Vanta Agent installed."
echo ">>> To configure your agent interactively, run:"
echo ">>> sudo vanta-setup"
echo ">>>"
echo ">>> After setup, enable the service with:"
echo ">>> sudo systemctl enable --now vanta-agent"
echo ">>>"
}
post_upgrade() {
if systemctl is-active --quiet vanta-agent; then
echo ">>> Restarting Vanta Agent..."
systemctl restart vanta-agent
fi
}
pre_remove() {
# Ported from vanta-amd64.deb/control.tar.gz/prerm
echo ">>> Stopping Vanta Agent..."
systemctl stop vanta-agent.service
systemctl disable vanta-agent.service
}
post_remove() {
# Ported from vanta-amd64.deb/control.tar.gz/postrm
echo ">>> Removing Vanta data and logs..."
rm -rf /var/vanta
rm -f /etc/vanta.conf
}
|