blob: 462759cd9842dd73b34629fedba8ff17e22b7830 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
post_install() {
echo "==> mwu-bot installed."
echo " - Edit /etc/.env with your API keys."
echo " - Enable and start the service with:"
echo " sudo systemctl enable --now mwu-bot.service"
}
pre_remove() {
echo "==> Stopping and disabling mwu-bot.service..."
# Stop and disable without checking; systemctl will not fail if unit doesn't exist
systemctl stop mwu-bot.service 2>/dev/null || true
systemctl disable mwu-bot.service 2>/dev/null || true
}
|