Add --now option to enable and start the service

This commit is contained in:
Peter 2024-03-01 23:44:58 +08:00
parent 17d5877916
commit a7aeb4c00f
No known key found for this signature in database
GPG Key ID: CFF8BB30B2E6D6FD

View File

@ -36,7 +36,7 @@ if [ "$1" = configure ] || [ -n "$not_deb_os" ]; then
fi
/bin/systemctl daemon-reload
/bin/systemctl enable clickhouse-server
/bin/systemctl enable --now clickhouse-server
else
# If you downgrading to version older than 1.1.54336 run: systemctl disable clickhouse-server
if [ -x "/etc/init.d/clickhouse-server" ]; then