diff --git a/debian/clickhouse-server.init b/debian/clickhouse-server.init index 85cf9c9e72a..780b51ea46f 100755 --- a/debian/clickhouse-server.init +++ b/debian/clickhouse-server.init @@ -165,7 +165,7 @@ start() mkdir -p $CLICKHOUSE_PIDDIR chown -R $CLICKHOUSE_USER:$CLICKHOUSE_GROUP $CLICKHOUSE_PIDDIR # Set net_admin capabilities to support ClickHouse better introspection - su -s setcap cap_net_admin=+ep "$BINDIR/$PROGRAM" + setcap cap_net_admin=+ep "$BINDIR/$GENERIC_PROGRAM" initdb if ! is_running; then # Lock should not be held while running child process, so we release the lock. Note: obviously, there is race condition.