ClickHouse/debian/clickhouse-server.prerm

7 lines
174 B
Bash

#!/bin/sh
if [ "$1" = "upgrade" ] || [ "$1" = "remove" ]; then
# Return etc/cron.d/clickhouse-server to original state
service clickhouse-server disable_cron ||:
fi